I have a page PAGE1.jsp that has a table of names from the database. The page also has a text box in which the user can enter a name and submit. Once the user submits, the flow goes to a servlet that inserts the data in the database table and gets forwarded to a confirm.jsp page that displayes a confirmation message.
I want a link/button on confirm.jsp that takes me back to PAGE1.jsp which has the latest set of names. i.e I want a back and reload functionlity. How do I do that?
history.go(-1) and history.back() just go back to PAGE1.jsp but they dont refresh the page. I have to manually refresh to get the latest data in that table. How can this be prevented?