<c:forEach>遍历标签自动生成序号…

来源:互联网 发布:matlab画出网络拓扑图 编辑:程序博客网 时间:2024/05/21 14:01
因为jsp使用需要自动生成序号,原来有个标签 varStatus 可以显示出当前下标,然后再写就简单了 见代码

   <  c:forEach items="${fnc:getApplyList(ebApply.apNumber)}" var="Apply"  varStatus="status">

     

    </     c:forEach>
     
   
   

因为index第一个下标是0 所以给他加1

<c:forEach>遍历标签自动生成序号的问题

齐活~~~~~~
${status.index + 1}
${status.index + 1}
原创粉丝点击