The <c:forEach>
tag is definitely suitable for this. It has begin
and end
attributes where you can specify the, well, begin and end. It has a varStatus
attribute which puts a LoopTagStatus
object in the loop tag scope which in turn has several methods like getIndex()
and on.
Here's a kickoff example:
<c:forEach begin="0" end="10" varStatus="loop">
Index: ${loop.index}<br/>
</c:forEach>
不定期副业成功案例分享
[jstl]
tag below the question until a popbox shows and click the info link there.