使用一些技巧
1111111111111111 (外层循环内容)
  aaaaaaa        (需要加入的内层循环列表) 
  aaaaaaa
新做成一个类集合
class Compositive
{
    String Id1;
    String[] C02;
}
class C01
{
    Compositive[] compo;    
}<logic:iterate id="compo" name="CO1" property="compo" indexId="index">
<tr>
<td><bean:write name="compo" property="Id1"/></td>
</tr>
<logic:iterate id="C02id" name="compo" property="C02" indexId="index">
<tr>
<td><bean:write name="C02id"/></td>
</tr>
</logic:iterate>
</logic:iterate>

解决方案 »

  1.   

    我这样试过,不过我的方法和你的不完全一样。我是由EJB方法直接得到要显示的集合Collection.因为要在这个集合中加另外一个复杂集合,我用ActionForm类进行组装,然后通过Session传到JSP页面。按下列写法:
      <logic:iterate id="compo" name="CO1" type="/../ExpActionFormList" indexId="index">
    <tr>
    <td><bean:write name="compo" property="Id1"/></td>
    </tr>
    <logic:iterate id="C02id" name="compo" property="C02" type="/../ExpVO" indexId="index1">
    <tr>
    <td><bean:write name="C02id" property="..."/></td>
    </tr>
    </logic:iterate>
    </logic:iterate>但会报错:javax.servlet.jsp.JspException: No collection found, 内层集合没有找到。