-1
如何使用struts逻辑迭代器遍历另一个列表中的列表?struts中的逻辑迭代器
如何使用struts逻辑迭代器遍历另一个列表中的列表?struts中的逻辑迭代器
<logic:iterate id="new name for inner list" collection="outer array list name">
<bean:write name="inner list name" />
</logic:iterate>
您可以使用下面的代码,这会为内部列表工作
<logic:iterate id="parentObj" property="parentList" name="formname">
<logic:iterate id="childObj" name="parentObj" property="childLstname">
<bean:write name="childObj" property="childAttributeName" />
</logic:iternate>
</logic:iterate>