You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2013/08/08 16:20:47 UTC

[jira] [Created] (WW-4173) Add "disabled" attribute to element.

Paul Benedict created WW-4173:
---------------------------------

             Summary: Add "disabled" attribute to <interceptor-ref> element.
                 Key: WW-4173
                 URL: https://issues.apache.org/jira/browse/WW-4173
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
            Reporter: Paul Benedict


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:
{code}
<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" disabled="true" />
         <interceptor-ref name="myStack"/>
         <result name="input">login.jsp</result>
         <result name="success"
             type="redirectAction">/secure/home</result>
</action>
</package>
{code}

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira