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!

JSTL: set a session variable

843835Jun 18 2003 — edited Jun 19 2003
I have to handle some session variables instantiated after a bean elaboration in my app. I declare them with JSTL in this way:

<c:set var="code" value="${bean.value}" scope="session"/>

I have difficulties when I have to use these session vars, I don't understand what is the correct way to call them with JSTL. Now I use simply (in the next pages) this code:

<c:out value="${code}"/>

but the value is in many cases wrong, it not corresponds to the value I expect. Thanks for the help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2003
Added on Jun 18 2003
2 comments
262 views