cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Wyles <...@robinwyles.com>
Subject Re: jxtemplate - HashMap
Date Fri, 24 Sep 2004 10:40:27 GMT
Defe,

On 24 Sep 2004, at 12:39, defe wrote:

> <jx:forEach var="key" items="${map.keySet()}">
>    <value>${map.get(key)}</value>    <!-- how to pass 'key' as a 
> parameter to get() here? -->
> </jx:forEach>

This works fine for me, but I wonder if your map is referenced 
correctly? Maybe it should be bean.map or something? Personally I set 
my map as a variable first because I use it in various places in the 
pages...

<jx:set var="map" value="${bean.map}"/>

Robin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message