How to get value of a field from last page if u r not submitting the last page
Arun Jassiar
Greenhorn
Joined: Mar 16, 2001
Posts: 4
posted
0
Dear Champs, i have a big problem, i am submitting a form (login.jsp), with action some_action.jsp, and redirecting it login_success.jsp but i am getting null values through getParameter method in login_sucess.jsp further i want to transfar thiese value to Active Server Page on clicking at some link in login_success.jsp. please Help me as soon as possible, Arun
------------------
Jeroen Wenting
Ranch Hand
Joined: Oct 12, 2000
Posts: 5093
posted
0
When redirecting from some_action.jsp to login_success.jsp the requestbuffer is cleared, causing the parameters to be lost. What you should do is set the parameters in the HTTP session in some_action.jsp and read them back in login_success.jsp. To transfer the values to non-Java applications, your best bet is to set them as HTTP request parameters or to include them in the HTTP headers.
42
subject: How to get value of a field from last page if u r not submitting the last page