You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by oguzhan tortop <og...@yahoo.com> on 2007/04/27 09:13:40 UTC
nested iteration using struts2 iteration tag
hi i have a list that holds other lists and inside of the other lists i have
objects but i have a little problem while reaching the lists inside of a
list. Here is my tag structure
<s:iterator status="statMain" value="menuList">
<ul id="#statMain.index" class="treeview">
<s:iterator value="menuList[#statMain.index]" status="stat">
<li>
../admin/EditMenu!authorize.action?menuId=<s:property value= " >
../images/edit_icon.gif
../admin/EditMenu!delete.action?menuId=<s:property value= " >
../images/delete.gif <s:property value="title"/>
<s:iterator status="stat1" value="childMenus">
<s:if test="#stat1.index==0">
<ul>
</s:if>
<li> ../admin/EditMenu!authorize.action?menuId=<s:property
value= " > ../images/edit_icon.gif
../admin/EditMenu!delete.action?menuId=<s:property value= " >
../images/delete.gif </textarea> <s:property value="title"/></li>
<s:if test="#stat1.last">
</ul>
</s:if>
</s:iterator>
</li>
</s:iterator>
</ul>
</s:iterator>
i can not access to the bold one what should i do for accesing a list inside
of a list.
Thanks
--
View this message in context: http://www.nabble.com/nested-iteration-using-struts2-iteration-tag-tf3656055.html#a10214250
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org