Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling session timeout with errorPage

 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set the isErrorPage directive to true in your error page?
 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ,
i have the isErrorPage="true" in the Errorpage.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic