perhaps use a servlet filter to do this - you can simply map the filter to whatever urls you wish to apply rather than remembering to include some code in each and every jsp/action class etc
e.g. in your doFilter(ServletRequest, ServletResponse, FilterChain) method: 1. HttpSession session = request.getSession(true); 2. now look for authentication object on the session 3. if not there send user to logon page request.getRequestDispatcher("some_page").forward(request, response); the "some_page" could be defined in web.xml as a init-param for your filter also you may prefer to do a forward rather than a redirect (to keep parameters), but "wrap" the original request so the parameters cannot be get or set...(ie extend HttpServletRequestWrapper class) -----Original Message----- From: mosho [mailto:[EMAIL PROTECTED] Sent: Monday, 25 September 2006 2:48 PM To: user@struts.apache.org Subject: Question about session time-out using Listener Hi All, When session times out I want to forward a request to another page.Is it possible to do it with HttpSessionListener? How can I get response object so that I can redirect to another page? Thanks for your help! -- View this message in context: http://www.nabble.com/Question-about-session-time-out-using-Listener-tf2 329396.html#a6480246 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************************** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]