-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>