Monday, February 11, 2008

Warning: Page has Expired

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.




The above message is displayed when you try to access web pages that were requested using the Post method.

Solution 1 : If possible change the request method to 'Get'. This will not work particularly when a form that has a many fields is submitted.

Solution 2(applicable when Struts framework is used) :

Specify the 'redirect' attribute with the value 'true'



This approach uses the PRG (Post - Redirect - Get) pattern where a POST request is replaced by a GET request.