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

Passing values to jsp page

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