Hi,
I want to display a customized page upon session timeout.
I know ho wto set the session time out ,but after session time its displaying a blank page, instead i want to display a error page .
Iam using IBM WSAD 5.1/Websphere
Thanks
RK
-
show a customized error page upon session timeout (1 messages)
- Posted by: Radhakrishna E
- Posted on: September 23 2004 13:31 EDT
Threaded Messages (1)
- show a customized error page upon session timeout by Arun Nair on September 24 2004 04:58 EDT
-
show a customized error page upon session timeout[ Go to top ]
- Posted by: Arun Nair
- Posted on: September 24 2004 04:58 EDT
- in response to Radhakrishna E
If you are using JSP, then you could use <%@ page errorPage="errorPage.jsp" %>. The error page will be displayed when an un handled error happens. And in the error page you could check Exception or HttpSession object state.
Also, (this probably I havent used before) have a look on <error-page> element in your web.xml, which can be configured to redirect the request to a particular resource (.jsp, .html) in case of any Exception. You can specify HTTP status code or a fully-qualified class name of an exception in the Error/Exception field.
-arun