How to stop re submitting a form after clicking back button
<p>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.</p>

<p>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.</p>

<p>Consider this similar to a shopping cart example where in this case he would buy the same item twice. But the only problem here is i cannot handle this in backend, i.e. the database can never know a redundant operation is taking place.
I need to handle this from the client side.Bit weird but i have to do it this way.</p>

<p>Basically when the user clicks the back button i don't want him to be able to go to the form page and may be just to some other page. </p>