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 c:when: test accessing bean evaluates always to false

843842Dec 16 2004 — edited Dec 17 2004
I have Faces application with a managed bean configured in faces-config.xml . I can access the properties of this bean from my JSF code successfully.

The following code in a JSP page does not work like expected:

<c:choose>
<c:when test="${Login.role eq 'admin}'" >
<x:commandNavigation id="nav_4" value="#{bundle.ovw_systems}"
action="go_ovw_systems" />
</c:when>
</c:choose>

I too tried with no success:
<c:when test="${sessionScopeLogin.role eq 'admin}'" >

The test always evaluates to "false" the content of <c:when> is skipped.

I don't have a line like

<jsp:usebean...> somewhere in my JSP pages (but this makes no difference).

How do I setup managed beans correctly so that I can access them from non-JSF code like JSTL?

Michael
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2005
Added on Dec 16 2004
4 comments
161 views