struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: Custom interceptor stack not working
Date Wed, 30 Dec 2009 08:54:52 GMT
Hi Sanjay,
it looks ok to me, You can compare your solution to mine described here:
http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html

Best greetings,
Paweł Wielgus.




2009/12/30 Sanjay Patel <skpatel20@gmail.com>:
> Hi,
>
> I am using this simple interceptor configuration, just following
> http://struts.apache.org/2.1.8/docs/interceptor-configuration.html :
>
> <struts>
>    <package name="default" namespace="/" extends="struts-default">
>
>        <interceptors>
>          <interceptor name="security" class="root.SecurityInterceptor"/>
>          <interceptor-stack name="secureStack">
>            <interceptor-ref name="security"/>
>            <interceptor-ref name="defaultStack"/>
>          </interceptor-stack>
>        </interceptors>
>
>        <default-interceptor-ref name="secureStack"/>
>
>        <global-results>
>           <result name="login">/WEB-INF/content/index.jsp</result>
>        </global-results>
>    </package>
>    <constant name="struts.devMode" value="true" />
> </struts>
>
> My class definition goes like this:
>
> public class SecurityInterceptor extends AbstractInterceptor {
>
>    public String intercept( ActionInvocation actionInvocation ) throws
> Exception {
>        throw new Exception();
>    }
> }
>
> I am scratching my head long since but it simply is not working. Any clues
> would help a lot.
>
> --
> Thanks,
> Sanjay
> www.sanjaypatel.name
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message