File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Passing values to jsp page


Joined: Mar 20, 2001
Posts: 4
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?
Vetri selvi
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
HttpSessions are there for these kind of need. Please go through this related discussion.
ALso please re-register with your first and lastnames.
maha anna
Peter den Haan
Ranch Hand

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

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

I agree. Here's the link:
subject: Passing values to jsp page
It's not a secret anymore!