Here i have class "SessionInterceptor" for session management.
In above i have created interceptor stack and included in all action where i need with the navigation for session expired as
If i have more actions then i do have to include interceptor-ref and <result name="session">/sessionexpired.jsp</result> in all which seems time consuming. Is there any approach so that i don't have to include this in all actions ?
my problem is i want the interceptor stack , "sessionStack" that i made to be included in all necessary actions and the result for sessionexpired.jsp.
As this can be done by default-interceptor-ref for interceptor and global results for the results. i have tried like the above code in the struts.xml. i want to maintain the session with this, but its not working. i directly goes to sessionexpired.jsp. i think it is due to global results.
i have implemented like the above code using default-interceptor-ref and global result. is this the right approach that i implemented like above ?