Please guide me whats the best way to do this in jsp/servlets.
I have a page1.jsp
I have a submit button on this page.
Onclick of that button, I need to call page2.jsp
Within page2.jsp, I am doing some processing say insert and give a "task complete" message on page2.jsp.
This works fine. Now the problem is if the user refreshes page2.jsp, that task gets processed again. How should I prevent this ?[
I tried doing page1.jsp ->servlet1.class ->page2.jsp
but again its the same problem when they refresh because the url shows the servlet
rather that page2.jsp.
Any suggestions what I can/should do ?