Posted By

rseiji on 02/17/11


Tagged

jstl


Versions (?)

c:forEach index


 / Published in: Java
 

URL: http://download.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/forEach.html

  1. <c:forEach items="${list}" var="item" varStatus="status">
  2. <c:out value="item"/>
  3. <c:out value="${status.index}"/>
  4. <c:out value="${status.count}"/>
  5. <c:out value="${status.first}"/>
  6. <c:out value="${status.last}"/><br/>
  7. </c:forEach>

Report this snippet  

You need to login to post a comment.