日期:2014-05-18  浏览次数:20768 次

Struts的<logic:iterate>标签打印2维数组的问题
如题,比如在action中将一个类似String[][]   a=String[3][3];
request.setAttribute( "slist ",a);

如何在页面用二重 <logic:iterate> 打出来?

------解决方案--------------------
<logic:iterate>
<bean:define id= " " name= " ">
<logic:iterate>
<bean:write name= " " propertity= " ">
</logic:iterate>
</logic:iterate>

------解决方案--------------------
<logic:iterate id= "s1 " name= "slist ">
<logic:iterate id= "s2 " name= "s1 ">
<bean:write name= "s2 "/>
</logic:iterate>
<br>
</logic:iterate>