i have a jsp page which contains 2 forms as follows:
<form action=cancelRide.html id="cancel" method="get">
<button type="submit" name="cancel">Cancel</button>
</form>
<form action=confirmRide.html method="post">
<button type="submit" name="book">Book</button>
</form>
And on the click of cancel button it goes to cancelRide controller.I need the same thing to happen when the back button of the browser clicked .That is when the back button is clicked I need the cancelRide form to be submitted.