A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Prevent Duplicate Post on Refresh to Database
Joined: Jun 14, 2006
Jun 14, 2006 06:35:00
I have two
pages, the first allows the user to enter data and submit to a handler page that does the processing, posts the data to the database and re-displays a confirmation of the data entered.
The issue is that if a user "refreshes" the handler page through the browser... the data gets posted to the DB again....
Is there any methodology to prevent this from happening in this context.
Author and ninkuma
Joined: Jan 10, 2002
Jun 14, 2006 08:08:00
Yes. Please read
and pay particular attention to the PRG
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Prevent Duplicate Post on Refresh to Database
Problem using Browser Back or Refresh
Disabling a href=...
multiple form submission
struts action called on refresh
page relaod probem- resending data to servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013