• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Warning: Page has Expired

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a report page which show list of item. User can click on item and see detail page.
But now if user click browser back button i am getting warning page saying that
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.

is there any way to display previous list page? if i change post method to "GET" it is working but i dont want to do that.

Thanks in Advance
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one of the consequences of instructing the browser not to cache the page. I expect somewhere in your page you have something similar to the following:



When the user hits the back button, the browser gets the page from it's cache: it doesn't go to the server. One way to avoid this message would be to allow the browser to cache the page, but that might cause other unwanted side effects. Many websites simply accept this message, and hope users will learn not to use the back button. Go to your online banking website, and chances are you'll get this message if you hit the back button. One solution is to use javaScript to disable the back button.

Good luck.
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
also, check the controller property in your struts-config.xml. if you have the property 'nocache' sets to 'true' for the controller, that will also cause the expired post.
 
aamchi mumbai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.....my problem solved
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
let us know how u solved that with out changing POST to GET and also with out caching ...may be u have found out a way which others wont knwo
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but the struts-config.xml controller noncache property is not working.........
is there any global way to do this.......... since i need to modify in 200 jsps............
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic