GeeCON Prague 2014*
The moose likes JSP and the fly likes Handling session timeout with errorPage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Handling session timeout with errorPage" Watch "Handling session timeout with errorPage" New topic
Author

Handling session timeout with errorPage

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi,
i have a web application,which uses ErrorPage for displaying jsp errors.
Iam trying to implement Session Time out ,and when it happens, i wanted to show a custom message thru 'isErrorPage'. In the isErrorPage , iam using the 'exception' object to display the messages.
But when the session expires, the isErrorPage is displaying a message 'null' instead of an exception.

How can i trap the session expiry and display a custom message.

Any suggestions?

Thanks
raj
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you set the isErrorPage directive to true in your error page?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Yes ,
i have the isErrorPage="true" in the Errorpage.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling session timeout with errorPage