In struts2 i have one default interceptor and lot of actions in the struts.xml page.
My struts.xml is like this
<struts>
<package>
<interceptors>
<interceptor-ref name="" class="" >
<interceptor-stack name="" >
<interceptor-ref name="" />
<interceptor-ref name="" />
</interceptor-stack>
</interceptor-ref>
</interceptors>
<action name="" class="package.class" method= "method" >
<result name="success">jsp page</result>
<result name="success">jsp page</result>
</action>
<action name="" class="package.class" method= "method" >
<result name="success">jsp page</result>
<result name="success">jsp page</result>
</action>
<action name="" class="package.class" method= "method" >
<result name="success">jsp page</result>
<result name="success">jsp page</result>
</action>
</package>
</struts>
In the default interceptor i have check the session. But if session is not set i need to redirect the page to login page, hence it should be work in all actions?. How do i implement this. Do i need to call the interceptor in all action or if i use default interceptor how can i set the redirect page in all actions?.