Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detecting broswer refresh action from servlet

 
aj fernandez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to detect when a user clicks on the refresh button on the browser menu. I recently began working on a business application adn there seems to be a bug when the user clicks the refresh button. More specifically, it behave as a submit action to the server; thereby creating a new request for this application and that is NOT good. Please provide any details.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aj,
There isn't a way to know that the refresh button was hit per se. However, you can store a token in the session so that if the user submits the same request again, you don't process it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic