wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes what could cause the Warning: 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 » Engineering » HTML, CSS and JavaScript
Bookmark "what could cause the Warning: "Page has Expired when pressing the "Back" button"  " Watch "what could cause the Warning: "Page has Expired when pressing the "Back" button"  " New topic
Author

what could cause the Warning: "Page has Expired when pressing the "Back" button"

Elinor Chang
Ranch Hand

Joined: Jul 30, 2003
Posts: 58
I am using javascript:history.back() to direct JSPs back and forth. Someone gets the warning when visiting the page:

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.

I never had the error in my machine though. Is it something web browser dependent? Or what could possibly cause it? Something to do with the Javascript method?


The more I learn, the less I know....<br /> <br />SCJP2 <br />SCWCD
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If data was submitted to the page and the page was not cached then that warning will come up. It is to keep a person from submitting the information twice to lets say a credit card company.

Eric
Elinor Chang
Ranch Hand

Joined: Jul 30, 2003
Posts: 58
I did search upon the topic to find it is a known problem when trying to back to a page contains a form with POST method associated. However I didn't find any definite solution on it. Do you have any idea how to address that? Is there any code change required? - Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what could cause the Warning: "Page has Expired when pressing the "Back" button"