File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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
 
 
subject: How to get value of a field from last page if u r not submitting the last page
 
Threads others viewed
HOw to disable the Refresh property in the Current window
Vote for JavaRanch!
Getting drop down value in JSP as request scope.
How to Get Valueof SelectField
problem with back button
developer file tools