aspose file tools*
The moose likes Servlets and the fly likes redirect to error page upon session timedout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "redirect to error page upon session timedout" Watch "redirect to error page upon session timedout" New topic
Author

redirect to error page upon session timedout

Yellaiah Gopireddy
Greenhorn

Joined: Mar 24, 2007
Posts: 12
Hi,

I am building one web application using struts1.1. I wanted to redirect to one error page if session gets timed out and implemented in programmatic way using servlet API as I couldn't find solution in a declarative way.

I have gone through the previous posts but all of those explained programmatic way... And I couldn't find any tag in web.xml for my requirement.


can we achieve this in a declarative way. If yes, could you please explain it.

Thanks in advance.

~YGR
[ September 20, 2008: Message edited by: Yellaiah Gopireddy ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

No.

Servlet filters are often employed for this purpose.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Yellaiah Gopireddy
Greenhorn

Joined: Mar 24, 2007
Posts: 12
Thank you Bear Bibeault.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: redirect to error page upon session timedout