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:48 UTC

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

     [ https://issues.apache.org/jira/browse/WW-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated WW-4173:
------------------------------

    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:
{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.

  was:
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.

    
> 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