Thanks for all your replies. My application is a struts application. I tried to use SessionInactivityFilter, i am getting compilation errors. I just have to include the following in my xml file or I need to do something else also:
<filter> <filter-name>SessionInactivityFilter</filter-name> <filter-class>javawebparts.filter.SessionInactivityFilter</filter-class> <init-param> <param-name>forwardTo</param-name> <param-value>/session_expired.jsp</param-value> </init-param> </filter> I get the following error: Error(108,9): Invalid element 'filter' in content of 'web-app', expected elements '[taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'. Tamas Szabo wrote: > > Hi, > > You can use SessionInactivityFilter from the JavaWebParts project if you > don't want to reinvent the wheel: > > Doc: > http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/SessionInactivityFilter.html > > JWP Home Page: > http://javawebparts.sourceforge.net/ > > Good Luck, > > Tamas > > > > > http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/SessionInactivityFilter.html > > On 9/25/06, mosho <[EMAIL PROTECTED]> wrote: >> >> >> >> 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-tf2329396.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] >> >> > > -- View this message in context: http://www.nabble.com/Question-about-session-time-out-using-Listener-tf2329396.html#a6486905 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]