遍历指定次数
<c:forEach begin="2" end="5" var="i" step="1" varStatus="s">
${i}-${s.index}-${s.count}<br>
</c:forEach>
遍历容器
<c:forEach items="${strings}" var="item" varStatus="s">
<p>${item} - ${s.count}</p>
</c:forEach>
遍历指定次数
<c:forEach begin="2" end="5" var="i" step="1" varStatus="s">
${i}-${s.index}-${s.count}<br>
</c:forEach>
遍历容器
<c:forEach items="${strings}" var="item" varStatus="s">
<p>${item} - ${s.count}</p>
</c:forEach>