It's not a secret anymore!*
The moose likes Struts and the fly likes How to get login page when user clicks on browser's back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to get login page when user clicks on browser Watch "How to get login page when user clicks on browser New topic
Author

How to get login page when user clicks on browser's back button

kamal dobaria
Greenhorn

Joined: Feb 01, 2006
Posts: 2
Hi,

I am using struts framework.
I have set property nochache=true in response header of all pages.
So, browser does not caches my pages.

Now,when I am clicking on browser's back button, I am getting following message..generated by browser.

Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.




Instead of that I want to show user a login page, when it clicks on back button.

Can anyone help me?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to the Struts forum.
If there is a mechanism within Struts for this, you'll probably want to use it, rather than roll your own.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get login page when user clicks on browser's back button
 
Similar Threads
what could cause the Warning: "Page has Expired when pressing the "Back" button"
Warning: Page has Expired
Yet another caching trouble
Browser back button
Warning: Page has Expired in struts application