• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop reloading of data.

 
sonu rai
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,
I am Submiting an data in jsp Page and displaying it to another JSP page but the problem iam facing when i refresh the page data is again inserted.
how it could be stoped.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this, the servlets forum, and (if you don't get a good explanation) Google for the 'post, redirect, get' pattern.

In a nutshell, this pattern insures that clicking the refresh button will never do anything more than read something.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps this article will be helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic