After Session Time out on action user must redirec,
February 23, 2010 at 4:57 PM
Problem - We need to check if session time is out or server restarted, anyhow session is lost then user must redirected to login page with message “Session Expired. Please Re-login.” The way I try to resolve above problem is – I write an custom interceptor where I have some checks to check user session. I refer that interceptor with defaultStack in some order in a stack and use that stack as default-interceptor-ref. Now my custom interceptor will be called along with default interceptors in an order for each and every action request. Now till user session persists my application works well but when session timed out it shows me HTTP 400 Bad Request. The Page Can not be found. Even request dint reach through my custom interceptor. Please tell me where I am doing wrong. For your reference I am writing some code of struts.xml and my custom interceptor named SessionInterceptor-