Hi all,
I have a
JSP page "register1.jsp" that contains a form with a hidden field <input type=hidden name=from_register1 value=true>. The form submits to itself.
In the beginning of the JSP page I move the the sent field into a session variable, and then sendRedirect the page to itself.
It some kind of a trick to prevent the annoying alert window if the user hits the refresh button after he sumbitted the form.
The probelm is that after that I sendRedirect the page, the session variable seems to being disappeared.
After I submit, it STILL prints:
session.getAttribute("from_register1") DOES NOT EXIST!!! Why? I used to do such things in ASP and it worked fine.
[ May 03, 2005: Message edited by: Joseph Sweet ]