This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing values to jsp page
 
Similar Threads
how to add data in request object and pass it to next page?
Changing the URL when using forward or redirect...
send value using response.sendRedirect()
How to keep values from calling multiple jsp
JSP Page Directive