• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form resubmit on Back Button

 
Vani Bandargal
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.
 
Pavan Tummala
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 ]
 
Pazhamalai Nathan G
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic