This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Internet Explorer does not automatically resubmit your information for you.  RSS feed

 
Ranch Hand
Posts: 249
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the problem. In our web application, when we click a cancel button, we go to the previous page in history and get

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.



Clicking refresh will bring the page back. We have the following options set in out .jsp page:



If we comment these out, we don't get the message. But here is the problem. These pages were created with info from a database. Commenting out this code brings the page from the cache. If the db is updated between the orginal call and the cancel button, we will get bad data. So when the page goes back, we want the data resubmitted to the server automatically, and not make the user click the refresh button.

I hope I didn't make it sound too confusing. Thanks in advance for all help.


 
Author and ninkuma
Marshal
Posts: 66797
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use history.back. Rather make a "real" call to the page that you want to go to when the Cancel button is pressed.
 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was hoping that wouldn't be the case - so I have to go in and change a bunch of pages. Oh well. Of course this is only a problem with IE - with Firefox I get a warning pop up, but it still submits the form.

Thanks for the help.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66797
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No prob. Working aorund the browsers is sometimes more than half the battle.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!