File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes back button after logout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "back button after logout" Watch "back button after logout" New topic

back button after logout

Ankur Sharma

Joined: Nov 30, 2007
Posts: 21

My application env is Tomcat 5.0, Struts.

Currently when user logs out and hits the back button of browser it show the page error.html page which I have mentioned in web.xml. this html page has a link to

Right now when user clicks the above link it does not take him anywhere and stays there.

I want to send user back to login page if he is logged out. but i cannot give link to instead of because this page is being used by other server errors too and it takes user back to main menu page.

Where should I add code to check if user has logged out and send him back to login page if he clicks link in error page?

I have tried to debug it....but it's not going to the action where I can write some code to check just refreshes the same page.

Please advise.

I agree. Here's the link:
subject: back button after logout
It's not a secret anymore!