• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets and javabeans

 
Ben Roy
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to access session javabeans in a servlet? I often track user logons via a javabean, but this presents a problem if I want to use servlets. I hate to keep passing the user's ID and permissions through the query string, but right now I have no other way to do it.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to recover a JavaBean from a session just like any other object. Have you tried doing that using the bean name? Take a look at the java code created by your JSP engine to see how the JavaBean is being stored.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!