File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing session values from java class to JSP

 
Mahesh Lohi
Ranch Hand
Posts: 151
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to pass data in session from java class to a jsp. presently I am directing the java class to another jsp using forwards.

I would like to do both the things at the same time i.e., redirecting as well as passing data in session to two different jsps in the same java class, can this be done. Please help.

 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahi Lohi wrote:
I would like to do both the things at the same time i.e., redirecting as well as passing data in session to two different jsps in the same java class, can this be done.

Session data can be shared all JSP page for that particular user. So it doesn't matter whether its shared by 2 or 100 different JSP pages.
 
Mahesh Lohi
Ranch Hand
Posts: 151
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the quick response.

It helped me

 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic