File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get login page when user clicks on browser's back button