When I press F5 after submitting a form and coming to another JSP(and there is not error in form submission), the data of the form(already submitted) gets submitted again i.e. the previous form gets submitted over and over again although the current form on the screen must get refreshed.
How can I prevent this?
Joined: Nov 08, 2001
You have to do it on your server side code that recognizes that the data is repeated.
Or expire the page with Meta tags.
or you can keep a cookie, but not everyone has them enabled.