• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prevent Duplicate Post on Refresh to Database

 
Joe Mizrahi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two JSP 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.

Thanks !
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Please read this article and pay particular attention to the PRG pattern.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic