How do I display arrays with the displat taglib?
I have two joined sql statements, the second return arrays.
This is what I had before using the display tag.
<sql:query var="X">
select a, b from table;
</sql:query>
<c:foreach items="${X.rows}" var="row1">
<sql:query var="Y">
select c, d from table;
</sql:query>
<foreach items="${Y.rowsByIndex}" var="row2">
<c:out value=${row1.a}"/>
<c:out value=${row2[0]}"/> //which pulls out c
<c:out value=${row2[1]}"/> //which pulls out d
</foreach>
</foreach>
This worked perfectly but when I tried using displaytag
it displayed multiple times and then doesnt pick up the arrays (eg.
${row2[0]}).
this is a sample of how i used <display statement>
<foreach items="${Y.rowsByIndex}" var="row2">
<display:table name="${X.rows}">
<display:column property="" title=""/><c:out value=${row1.a}"/>
<display:column title=""><c:out value=${row2[0]}"/>
</display:column>
</foreach>
What am I doing wrong? How do I make it display the arrays and all
other data in one table?
thanks
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user