Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get value of a field from last page if u r not submitting the last page

 
Arun Jassiar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic