struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadia Kunkov" <nad...@parkerglobal.com>
Subject RE: JSTL when...test won't work.
Date Thu, 02 Dec 2004 19:39:02 GMT
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:struttin@reumann.net]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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


Mime
View raw message