cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: JXTemplate - HashMap
Date Mon, 20 Sep 2004 10:04:48 GMT
* Yves Hougardy:

> i need to get the keys and values out of an java.util.Map with jxpath.
> However, i'm not  supposed to know the  keys of the map. How  can i do
> that?

Try to iterate over the keys of the map:

<jx:forEach var='key' items='${map.keySet()}'>
  ${key}: ${map.get(key)}'/>
</jx:forEach>

Best regards,
-- 
Jean-Baptiste Quenot
Anyware Technologies
http://www.anyware-tech.com/

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


Mime
View raw message