Thank you.  I tried it and got an error attribute manager not found.
What does it mean?
Am i better of using scriplets?
Thanks for your help.
NK

-----Original Message-----
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 2:18 PM
To: Struts Users Mailing List
Subject: Re: JSTL when...test won't work.


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to