我这么写的时候 :<logic:notEmpty name="fatherRights"><logic:iterate id="fatherID" name="fatherRights" > <logic:notEmpty name="childRights"><logic:iterate id="childID" name="childRights"></logic:iterate> </logic:notEmpty>
</logic:iterate> </logic:notEmpty>
Hibernate: select tusers0_.TUID as TUID67_0_, tusers0_.USERID2 as USERID2_67_0_, tusers0_.USERID as USERID67_0_, tusers0_.UNAME as UNAME67_0_, tusers0_.UPASS as UPASS67_0_, tusers0_.UDIV as UDIV67_0_ from SYSTEM.TUSERS tusers0_ where tusers0_.TUID=?
org.apache.jasper.JasperException: Exception in JSP: /SystemManage/UserPurview.jsp:134131: <tr>
132: <td >
133: <input type="checkbox" name="checkbox3" value="checkbox">
134: ${childID.sname }</td>
135: </tr>
136: </logic:iterate> </logic:notEmpty>
137:
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.action.RequestProcessor.process
<logic:notEmpty name="fatherRights">
<logic:iterate id="fatherID" name="fatherRights" >
<logic:notEmpty name="childRights">
<logic:iterate id="childID" name="childRights">
</logic:iterate>
</logic:notEmpty>
</logic:iterate>
</logic:notEmpty>
可以换成类似< bean:write name="childID" property="sname"/>< br>的bean标签解决
把EL表达式换为< bean:write name="childID" property="sname"/>
<logic:iterate id="file" name="fileList">
<tr>
<html:hidden name="file" property="fileInfoId"/>
<td>
<bean:write name="file" property="fileInfoNum" />
</td>
<td>
<bean:write name="file" property="fileEmpName" />
</td>
<td>
<table style="width: 100%">
<logic:iterate id="paie" name="file"
property="salaryStandard.paies">
<tr>
<html:hidden name="paie" property="payId"/>
<html:hidden name="paie" property="payCount"/>
<td width="48">
<bean:write name="paie" property="payBasic" />
</td>
<td width="48">
<bean:write name="paie" property="payTraffic" />
</td>
<td width="48">
<bean:write name="paie" property="payPhone" />
</td>
<td width="48">
<bean:write name="paie" property="payFloat" />
</td>
<td width="48">
<bean:write name="paie" property="payGeneral" />
</td>
<td width="48">
<bean:write name="paie" property="payLunch" />
</td>
<td width="48">
<bean:write name="paie" property="trafficSubsidy" />
</td>
<td width="48">
<bean:write name="paie" property="payCar" />
</td>
</tr>
</logic:iterate>
</table>
</td>
<td>
<table>
<tr>
<td>
<input type="text" size="7" name="payoffBounty" value="0.0"/>
</td>
<td>
<input type="text" size="7" name="payoffSaleroom" value="0.0"/>
</td>
<td>
<input type="text" size="7" name="payoffDeduct" value="0.0"/>
</td>
</tr>
</table>
</td>
</tr>
</logic:iterate>
给楼主看个我以前写的 迭代中的迭代