码迷,mamicode.com
首页 > Web开发 > 详细

jsp页面List迭代

时间:2015-05-22 18:42:56      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:

<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>

jsp页面List迭代

标签:

原文地址:http://www.cnblogs.com/Defry/p/4522899.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!