user « Refresh « JSP-Servlet Q&A





1. Detecting if user clicks refresh    coderanch.com

Hi, Does anyone know of a simple way to detect if the user has refreshed a page. My problem is I have a web page that connects via jdbc to a database to insert data. After doing the insert it forwards to another page. However if the user then clicks refresh the insert is done again. I could probably write something ...

2. Trap Refresh and Back action by user    coderanch.com

You should be more specific about what exactly you're trying to do. While it is impossible for javascript on the client side to know that the page is being refreshed/backed up (as opposed to just closed for example), you can keep track in the session of whether the user has already loaded that page before. Unfortunately that will not tell you ...