• Post Reply Bookmark Topic Watch Topic
  • New Topic

Database entry on refreshing the browser

 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem..
In a servlet I insert a row in the database
Then I dispatch the request to a jsp
If I refresh the jsp page in browser then the row is again unnecessarily inserted in the databse
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please look over this article, paying particular attention to the Post-Redirect-Get pattern.
[ November 05, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!