File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Passing session values from java class to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing session values from java class to JSP" Watch "Passing session values from java class to JSP" New topic
Author

Passing session values from java class to JSP

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
Thank you for the quick response.

It helped me

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing session values from java class to JSP