Hi Okan,
On Dec 14, 2005, at 1:01 AM, Okan Basegmez wrote:
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 )
Yes, of course that will not work... :-)
<jx:forEach var="i" items="${tableindex}">
<jx:forEach var="row" items="${table${i}}">
${row.name}
</jx:forEach>
</jx:forEach>
I'd suggest that instead of your separate "tableX" named parameters
(and 'tableindex' parameter?), you just build a java.util.LinkedList
of tables in flowscript. Pass that into JXTemplate and iterate over
it:
<jx:forEach var="table" items="${tables}">
<jx:forEach var="row" items=${table}>
.
.
.
Does that do the trick?
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]