Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

after refresh on browser entry made in database using jsp and servlet  RSS feed

 
nilesh raskar
Greenhorn
Posts: 1
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after refresh on browser entry made in database using jsp and servlet
is any way after submit, value in textbox get flush from browser history
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, what I think that you are saying is that after a database operation, a refresh on the browser causes the database operation to be run again? Is that it?

If so, then you need to read this article, paying particular attention to the P-R-G pattern.
 
Mallik Avula
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can redirect to the confirm page once you completed the database operation.

Ex: You are taking/asking the data in register.jsp
Complete the database operation in servlet then instead of forwarding, redirect the registrationConfirm.jsp

Hope it will helps you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!