JSTL c:when: test accessing bean evaluates always to false
843842Dec 16 2004 — edited Dec 17 2004I 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