wood burning stoves 2.0*
The moose likes Servlets and the fly likes User Info from servlet to Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "User Info from servlet to Jsp" Watch "User Info from servlet to Jsp" New topic
Author

User Info from servlet to Jsp

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Hi I have to write a code on my servlet so that I can pass the login user detail to every jsp also the total information of every user logges in to the website


No Kaustubh No Fun, Know Kaustubh Know Fun..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

OK, so where's the code? What problems are you having with it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

sorry don't have any code for it well I know some ideas to implement it like using session save all the user in a list but not able to implement it into code please help me out... All I want to see the implementation of it So that I can understand it...

thanks

kaustubh
vijin das
Ranch Hand

Joined: Jun 07, 2010
Posts: 129

Kaustubh G Sharma wrote:sorry don't have any code for it well I know some ideas to implement it like using session save all the user in a list but not able to implement it into code please help me out... All I want to see the implementation of it So that I can understand it...

thanks

kaustubh


Just Go through HttpSession mechanism in servlets ....

and Session LISTENERS also ... which will give you more info how to do it ....


VIJINDAS
Ashokan Ayyasamy
Greenhorn

Joined: Jul 05, 2010
Posts: 7
Create a Object kinf of UserInfo. populate it in session(HttpSession) so that you can use it every where across.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Thanks Ashokan I read the link stuff and I understand the session thing also can anyone show me this in codes?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

You first! Give it a try. You will find that people will be much more willing to help you if you show some effort of your own.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

yup I tried it and got success in it..

Thanks for your kind help

Kaustubh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Info from servlet to Jsp