How to use multiple custom interceptor in Struts2

Published on Author bloggerfiveLeave a comment

Configure two custom interceptor in Struts.xml
======================================

<interceptors>

<!– Session Expire –>
<interceptor name=”SessionInterceptor”/>
<!– Clear Cache –>
<interceptor name=”ClearCacheInterceptor”/>

<interceptor-stack name=”MultipleCheckStack”>
<interceptor-ref name=”SessionInterceptor” />
<interceptor-ref name=”ClearCacheInterceptor” />
<interceptor-ref name=”defaultStack” />
</interceptor-stack>

</interceptors>

<default-interceptor-ref name=”MultipleCheckStack”/>

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *