You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Greg Hess <gh...@wrappedapps.com> on 2002/08/06 21:16:49 UTC
Nesting
Hi All,
I have searched the archives and found some related threads but haven't
helped me.
I am using the <logic:iterate> to loop over a Collection of beans, each bean
has a Collection of Strings as one of its properties. the code is as
follows:
<logic:iterate id="trans" name="transactions" indexId="ctr">
<bean:write name="trans" property="date" />
<logic:iterate name="trans" property="instances"
indexId="ctr2" id="instance">
<bean:write name="instance"/>
</logic:iterate>
</logic:iterate>
The result is that the nested <logic:iterate> writes out the correct value
for <bean:write name="instance"> but seems to be using the parent tags loop
counter as the result is duplicated the parent <logic:iterate> Collection
count.
Does anyone see my error or know of how I can achieve this?
Thanks,
Greg