aspose file tools
The moose likes JSP and the fly likes Data getiing Re-Submitted Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Data getiing Re-Submitted" Watch "Data getiing Re-Submitted" New topic
Author

Data getiing Re-Submitted

Nicolas Flammel
Ranch Hand

Joined: May 05, 2004
Posts: 32
When I press F5 after submitting a form and coming to another JSP(and there is not error in form submission), the data of the form(already submitted) gets submitted again i.e. the previous form gets submitted over and over again although the current form on the screen must get refreshed.

How can I prevent this?
[ July 12, 2004: Message edited by: Nicolas Flammel ]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
See if the Post-Redirect-Get pattern works for you.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Data getiing Re-Submitted
 
Similar Threads
is it good design having mutiple forms in a jsp
Form submission in struts 1.2
Strange problem. Formgetting submitted in firefox but not in IE
onSubmit event on form
Data getiing Re-Submitted