struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <strut...@reumann.net>
Subject Re: JSTL when...test won't work.
Date Thu, 02 Dec 2004 19:18:17 GMT
Nadia Kunkov wrote the following on 12/2/2004 2:06 PM:
> Well, your suggestion almost worked. I got the keys and values printed out but the "test"
wouldn't work!
> Here is what I tried to do:
> 
> <c:forEach items="${fRoles}" var="item">
>      <c:if test="${item.key} == 'manager'">
>          Found manager
>      </c:if>
> </c:forEach> 
> 
> Is the syntax right?  

No, it should be <c:if test="${item.key == 'manager'}">

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message