使用一些技巧
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>
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>
解决方案 »
- 新手在线请教如何配置才能使用Struts logic标签
- Servlet跳转页面,怎么跳出框架
- hibernate最好的生成工具是什么
- 全部家产求资料。
- 请问一下actionform和普通bean做dto的区别
- hibernate 库表对象模型的问题,有深度!
- 为了配合iReport新出的0.3版本,放出我整理的JasperReport与iReport配置与使用说明
- 初学java不太明白J2EE,求助;(
- 谁肯来这,超级郁闷,快疯掉了
- 急!!!java中怎样 将int型转为string型???谢谢
- 广州的学生请进来===>
- 那位有基于struts框架的jsp程序拿来参考一下学习学习。尤其是struts框架的配置
<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, 内层集合没有找到。