I have a struts application running on websphere 6.1. I would like to redirect login page when the session is destroyed because of inactivity.
I am planning to have a session listener class that implements the HttpSessionListener interface and is registered in the web.xml configuration.
I don't see any way to simple redirect in sessionDestroyed() as request object is not available.
Can it be possible that i will throw customized exception from the sessionDestroyed() method.
This exception would be defined as a global exception in the struts configuration xml and would map back to the login page of the application.
Any better suggestion for session handling is welcome other than above.
Thanks in advance,