How to stop re submitting a form after clicking back button [duplicate]
This question already has answers here : Prevent user from seeing previously visited secured page after logout (5 answers) Closed 3 years ago . I have a JSP page with a form where you fill up certain details. On submitting the form i call a servlet which then updates details in a database after that i redirect to a page i display a confirmation message to the user. The problem i have here is when the user clicks back he goes to the form page again where if he clicks a submit button, it creates a new record in the database. Consider this similar to a shopping cart example where in this case he