Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Info from servlet to Jsp

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so where's the code? What problems are you having with it?
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ....
 
Ashokan Ayyasamy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup I tried it and got success in it..

Thanks for your kind help

Kaustubh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic