1、行迭代
<tbody>
<c:choose>
<c:when test="${not empty result}">
<c:set var="rowNum" value="1" scope="page"/>
<c:forEach var="obj" items="${result}">
<tr>
<td>${rowNum }</td>
<td>${obj.loanContractNo }</td>
<td>${obj.loanName }</td>
<td>${obj.businessManager }</td>
<td>
<c:forEach items="${listArea}" var="i">
<c:if test="${i.nodeNo eq obj.areaNo}">
${i.nodeName }
</c:if>
</c:forEach>
</td>
<td>
<a href="javascript:void(0);" onclick="goAppInfoNew('${obj.priNumber}')"/>接待信息录入</a>
<%-- <a href="javascript:void(0);" onclick="doRepeal('${obj.loanContractNo}','p2pReceptionInfoAction.do?method=queryP2pReceptionInfoInit')">撤销</a>--%>
</td>
</tr>
<c:set var="rowNum" value="${rowNum+1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr class="odd"><td colspan="6">没有可查看的记录!</td></tr>
</c:otherwise>
</c:choose>
</tbody>
2、表迭代
<c:set var="rowNum" value="1" scope="page"/>
<display:table uid="app" id="app" name="app"
class="dpTable" cellpadding="0" cellspacing="1" export="false">
<display:column title="分公司">
<c:forEach items="${listArea}" var="a">
<c:if test="${app.areaNo eq a.nodeNo}">${a.nodeName}</c:if>
</c:forEach>
<c:choose>
<c:when test="${app.areaNo eq 'HQ' }">总计</c:when>
</c:choose>
</display:column>
<display:column title="正常还款率">
<fmt:formatNumber value="${app.overdueRate_A}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="0-30天逾期率" >
<fmt:formatNumber value="${app.overdueRate_B}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="30-60天逾期率" >
<fmt:formatNumber value="${app.overdueRate_C}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="60-90天逾期率" >
<fmt:formatNumber value="${app.overdueRate_D}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="90-120天逾期率" >
<fmt:formatNumber value="${app.overdueRate_E}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="120-150天逾期率" >
<fmt:formatNumber value="${app.overdueRate_F}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="150天以上逾期率" >
<fmt:formatNumber value="${app.overdueRate_G}" type="percent" pattern="0.00%"></fmt:formatNumber>
</display:column>
<display:column title="城市系数" >
<fmt:formatNumber value="${app.cityFactory}" ></fmt:formatNumber>
</display:column>
<display:column title="综合评分" >
${app.finalFactory}
</display:column>
<display:column title="排名" >
<c:choose>
<c:when test="${app.cityFactory eq '0'}">
<c:set var="rowNum" value="${rowNum-1}" />
不参与排名
</c:when>
<c:otherwise>
${rowNum}
</c:otherwise>
</c:choose>
</display:column>
<c:set var="rowNum" value="${rowNum+1}" />
</display:table>