Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the session variable value in JSF

843842May 26 2005 — edited May 30 2005
Hi

This is Subbus, I'm new for JSF framewrok, i was set the session scope for my LoginBean in faces-config.xml file..

<managed-bean-name>login</managed-bean-name>
<managed-bean-class>LoginBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope> like that...

So all parameter in LoginBean are set in session right ?... for example i used userId is the Parameter...
Now i need to get the the userId parameter from that session in my another JSP page.. how i get that ?..

Already i tried
session.getAtrribute("userId");
session.getValue("userId");

but it retrieve only "null" value.. could u please help me.. it's very urgent one..

By
Subbus
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2005
Added on May 26 2005
4 comments
2,080 views