<logic:present name="carvingCertificateList">
<% int i = 0 ,j = 0;%>
<logic:iterate id="carvingCertificate" name="carvingCertificateList">
<% i++; j = i%2; pageContext.setAttribute("j",new Integer(j));%>
<tr bgcolor="<c:choose><c:when test='${j>0}'>#F4F0E7</c:when><c:otherwise>#F9F7F2</c:otherwise></c:choose>"
οnmοuseοver="this.bgColor = '#EAE2D0'" onMouseOut="this.bgColor=<c:choose><c:when test='${j>0}'>'#F4F0E7'</c:when>
<c:otherwise>'#F9F7F2'</c:otherwise></c:choose>">
<td height="26"> </td>
<td height="26"><c:out value="${carvingCertificate.createDate}"/></td>
<td height="26"><c:out value="${carvingCertificate.carvingCertificateNum}"/></td>
<bean:define id="sealdatas" name="carvingCertificate" property="sealDatas"/>
<td height="26">
<logic:present name="sealdatas">
<logic:iterate id="seal" name="sealdatas">
<bean:write name="seal" property="sdsealName"/>
</logic:iterate>
</logic:present>
</td>
<!-- 操作-->
<td height="26" colspan="2" width="262px"><a href="toPrintAction.do?SNO=${carvingCertificate.sno}" style="display:block; width:75px; float:left;" target="_blank">本次备案打印</a> <a href="historyCertList.do?SNO=${carvingCertificate.sno}" style="display:block; width:75px; float:right; margin-right:5px; margin-left:5px;" target="_blank">历史备案打印</a></td>
</tr>
</logic:iterate>
</logic:present>
在里面那层的循环如果是外层对像的一个属性则需要重新定义一个变量