You're following the right approach.

Is the interceptor defined in your package?

Normally either the plugin defines a package in struts-plugin.xml and your application extends that package, or your application needs to define the interceptor with an <interceptor name=..." tag>. Also don't forget you need an interceptor-ref either in your default package or application's package/action. Also ensure your plugin in the classpath.

In any case, the approach works so you probably just have a minor config error. Post your config (struts-plugin.xml and struts.xml) if the statement above doesn't help.

regards,
Jeromy Evans

Piero Sartini wrote:
Hello,

I am trying to write an authentication plugin for struts2. Goal is to reuse it across several projects so a plugin seems the way to go..

There is an Interceptor defined in struts-plugin.xml, lets call it AuthenticationInterceptor. Problem is that I am not able to use it in my main struts.xml from the project that includes my plugin.

Is it that I am allowed use this interceptor in my plugin only?
Also tried to define a package in the plugin and extend it in my main project, but this does not work as well.

Is it possible to use the plugin system from struts2 for my purpose? If not, maybe there is some better way?

        Piero

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to