aspose 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 2896
    
    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: 2896
    
    1

You're welcome
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Passing session values from java class to JSP
 
Similar Threads
passing an ArrayList from a servlet to JSP
Can I pass data from a JSP to popup window?
Call Java web application from VB
who to get the current session in my web app
how to transfer Session object from jsp page to model class?