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

How to prevent F5/ refresh web brower problem  RSS feed

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could any body help me to prevent F5 problem.

The thing is that when i submit data using POST to serve for update of database, it works and inserts the records...but when i refresh the page, again same data inserted.....

I have used RequestDispatcher for showing the response to user.

If i use response.sendRedirect,,,,onlythen it works, but my request attributes are not accessible.

any help
 
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
This article addresses that issue.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear! Even I was looking for this kind of a solution
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!