aspose file tools*
The moose likes Servlets and the fly likes Passing values to jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing values to jsp page" Watch "Passing values to jsp page" New topic
Author

Passing values to jsp page

vetriselvi
Greenhorn

Joined: Mar 20, 2001
Posts: 4
Hi,
I want to pass values from one jsp page to other without submitting jsp page.
let us say
I have a.jsp based on some criteria i will redirect to some other jsp (b.jsp)or html. One way is redirecting with (b.jsp?usr)parameters.
In that case user knows about the values passed. I want to pass the values as though they were submitted to b.jsp.
How can i achive this?
Thanks
Vetri selvi
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Selvi,
HttpSessions are there for these kind of need. Please go through this related discussion.
ALso please re-register with your first and lastnames.
regds
maha anna http://www.javaranch.com/ubb/Forum7/HTML/002674.html
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by maha anna:
Selvi,
HttpSessions are there for these kind of need.

Also worth considering is binding your parameters in the HttpRequest and using a forward.
- Peter

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing values to jsp page