tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Easy EL question
Date Mon, 08 Aug 2005 09:35:47 GMT
you use .key or .value, e.g

item.value['key']
item.key

Allistair

> -----Original Message-----
> From: Guillaume Lederrey [mailto:guillaume.lederrey@gmail.com]
> Sent: 08 August 2005 10:34
> To: Tomcat Users List
> Subject: Easy EL question
> 
> 
>   Hello !
> 
>   I'm still having problem with all the different syntax used in
> JSP... so excuse my question if it sound really stupid !
> 
>   I'm having to iterate on the "values" of a "Map". So I'd like
> something like that :
> 
> <c:catch>
>   <c:set var="items" value="${itemsMap.values}"/>
> </c:catch>
> 
> <c:forEach items="${items}" var="item">
>   [do something]
> </c:forEach>
> 
>   Of course, it doesnt work because there is no "getter" in a "Map" to
> get the values ...  There is probably a very easy and standard way to
> do exactly that ... could you help me on that one ?
> 
>   Thanks
> 
> 
>      Guillaume
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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


Mime
View raw message