jQuery in Action, 2nd edition
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
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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: 56528
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: form is getting submitted when 'Refresh' button on the browser is clicked.
 
Similar Threads
Problem when refresh the page in WebLogic 8.1 Struts
Prob while refresh the page in weblogic8.1 workshop
Browser back button
Problem when refresh the page in weblogic8.1 workshop
from is getting submitted when 'Refresh' button is clicked