Liny_@NotePad

沉迷ACG中

JSTL forEach的索引。。

YOYO posted @ 2009年12月02日 07:00 in 【Java EE】 with tags JSTL , 2614 阅读

使用varStatus的index属性即可:

  1. <c:forEach var="sell" items="${sellList.list}" varStatus="idx">
  2. ${idx.index}
  3. </c:forEach>
  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter