I coded a
JSP which is processed by an Action and then redirected back to same JSP on success/failure. Actually this jsp inserting data into database successfully and returning to the same jsp happily after insertion...
but
when I press refresh button after returning, it inserts previous data again into database even without clicking on submit button. And I noticed that when I'm coming on same JSP after successful insertion, it doesn't change its URL as it was in very first request....
my jsp url is-
http://localhost:8080/ManageMyAccounts/manage_account.jsp
and after clicking on submit button, it inserts record in DB and return on same jsp but with URL-
http://localhost:8080/ManageMyAccounts/transaction.do
and now if I press F5/ refresh button, it again inserts that previous data into DB...
So how to handle this ?
I made my best efforts explaining my problem to you. I hope you understood what I want. Now Please help....
Thanks..!