permaculture playing cards*
The moose likes JSP and the fly likes form is getting submitted when 'Refresh' button on the browser is clicked. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "form is getting submitted when Watch "form is getting submitted when New topic
Author

form is getting submitted when 'Refresh' button on the browser is clicked.

Madhu Bompaly
Greenhorn

Joined: Oct 11, 2007
Posts: 17
Hi every one,

I have a form which is getting submitted when I click on the 'Refresh' button the browser,Iam submitting the form using Javascript function form.submit();.
after I submit the from by clicking on submit button,and click on the Refresh button the form is getting is submitted again.
for my submit button I have set input type="button".
can some one please tell me how to correct this issue.
Thanks,
Madhu.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Read this article and pay particular attention to the Post-Redirect-Get pattern.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: form is getting submitted when 'Refresh' button on the browser is clicked.
 
Similar Threads
Problem when refresh the page in weblogic8.1 workshop
Browser back button
from is getting submitted when 'Refresh' button is clicked
Problem when refresh the page in WebLogic 8.1 Struts
Prob while refresh the page in weblogic8.1 workshop