Hi,

What do you think about adding possibility to create listeners which
will be executed before/after given interceptor?

Something like this:

public interface InterceptorListener {

    boolean accept(InterceptorMapping mapping);

    void beforeInterceptor(ActionInvocation invocation);

    void afterInterceptor(ActionInvocation invocation);

}

You can define them as a beens in struts.xml

<bean type="com.opensymphony.xwork2.interceptor.InterceptorListener"
class="com.demo.MyInterceptorListener"/>


There are already few interceptors defined:

https://cwiki.apache.org/confluence/display/WW/ActionEventListener
https://cwiki.apache.org/confluence/display/WW/DispatcherListener
https://cwiki.apache.org/confluence/display/WW/PreResultListener


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to