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!

Setting session variable in JSF page

843844Jan 22 2008 — edited Jan 23 2008
Hello,
How can I set a session variable in a JSF page. I tried using JSTL c:set, but that did not work.

I just want to set a variable in session scope. I even tried to create a ManagedBean which is in Session Scope, but I am unable to set the attribute value.

I need it because i am using CSS for displaying tabs and I'm highlighting the currently selected tab. So I want to set it in session scope so that it can always be highlighted.

Thank you,
Jacob.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Jan 22 2008
2 comments
631 views