JSP1 links to JSP2.
JSP2 call a servlet that does some stuff and ends with:
response.sendRedirect(request.getHeader("referer"));
return;
At this point I'm back to JSP2. The problem is that pressing the browser back button from there, the page simply reload itself instead of going back to JSP1. This is correct becouse the sendRedirect adds an entry to the history.
But I want to go back to JSP1. Any tips?