This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Form resubmit on Back Button  RSS feed

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a Struts application.
When I click on browser Back button, first I get a Security alert saying, "You are about to view pages over a secure connection ................." (the page I am on is also using protocol https and the page I am going to hit using the Back button also uses https: protocol and all these pages arr part of the Struts aplication). If I say yes , I get Page Expired warning and to get the page it asks to Refresh the page.
If I refresh, the form will be resubmitted and creates duplicate record which I do not want.
Any idea what is going on? Any help/suggestions are appreciated.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vani,
I think u should disable caching of pages by setting the appropriate response headers. I am not sure if it will solve ur problem. It solves a lot of issues with back button.
--
Pavan
 
Vani Bandargal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Pavan.

1.The strange thing is,it happens only for few pages and not for all within the application in given machine.
2. Why it is saying that I am leaving the secure connection?(for few pages) even though they are all on same server infact all these pages are part of one application?
3.If it is to do with secure/non secure mode, why it happens only on few machines even after going through proper authentication

Thank in advance
[ October 20, 2005: Message edited by: Vani D Bandargal ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Vani,
Go to View> Source for the corresponding jsp page.
And make sure that all url starts with httpsnot http.

Thanks and regards,
Pazhamalai.
 
Fire me boy! Cool, soothing, shameless self promotion:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!