Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I would like interceptor references to contain a "disabled" attribute so it's possible to exclude an interceptor that's already bundled the stack.
Example:
<package name="default" extends="struts-default"> <interceptors> <interceptor name="timer" class=".."/> <interceptor name="logger" class=".."/> <interceptor-stack name="myStack"> <interceptor-ref name="timer"/> <interceptor-ref name="logger"/> </interceptor-stack> </interceptors> <action name="login" class="tutuorial.Login"> <interceptor-ref name="clearSession"> <parem name="disabled">true</param> </interceptor-ref> <interceptor-ref name="myStack"/> <result name="input">login.jsp</result> <result name="success" type="redirectAction">/secure/home</result> </action> </package>
This isn't a totally thought out idea but the gist is you shouldn't have to redefine an entire stack to take out an interceptor.