cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Okan Basegmez <okan_baseg...@yahoo.com>
Subject How to set the items variable dynamically in JXTemplate
Date Wed, 14 Dec 2005 09:01:16 GMT
Hi, 

i use JXTemplate to build an XML file. From the
Flowscript, i pass collection parameters to the
template which are named like table1, table2, tablen.
Then i want to iterate for each table parameter the
contents like ( items="${table{$i}}" doesnt work )

<jx:forEach var="i" items="${tableindex}">
   <jx:forEach var="row" items="${table${i}}">
            ${row.name}
   </jx:forEach>
</jx:forEach>

Is it possible to set the name of the collection
object for items parameter using concatenation of
other strings?

okan





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message