wood burning stoves 2.0*
The moose likes Servlets and the fly likes How to get value of a field from last page if u r not submitting the last page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to get value of a field from last page if u r not submitting the last page" Watch "How to get value of a field from last page if u r not submitting the last page" New topic
Author

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
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get value of a field from last page if u r not submitting the last page
 
Similar Threads
Getting drop down value in JSP as request scope.
Vote for JavaRanch!
problem with back button
HOw to disable the Refresh property in the Current window
How to Get Valueof SelectField