Hello friends,
I have a problem which i am trying to resolve but not able to do so. Any help in this regard would be appreciated.
I have a
jsp page (x.jsp) which has an "Add" button. On click of Add button, another popup jsp page (y.jsp) would open that would list the users details like firstname, middlename, lastname, email etc.. I select a record in the popup jsp page and clicks on the OK button. On click of the OK button, the selected record would be placed in the parent jsp page (x.jsp) and the popup jsp page (y.jsp) will close. Now i click the save button on the parent jsp page (x.jsp) which will save the selected user details along with other info on the page.
Now my problem is after successful save, if i click on the refresh button, the recently added user record will again get inserted into the database and now there would be two user records with same info which actually should not happen. Is there any way to avoid database insert on click of the refresh button.
Please help,
Thanks in Advance,
Madhav