This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741
    
  65

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.
 
Don't get me started about those stupid light bulbs.
 
subject: redirect to error page upon session timedout
 
Similar Threads
Transactions
Where do I put method-permission for allowed method calls
need help,2 questions
Session Problem
controlling maxActiveSessions