jstl forEach specifies how items can customize the number of loops

Here, the number of control loops is 6 times,

<c:forEach begin="0" end="5" var="i">

            <c:set var="item" value="${list[i]}" />

            <c:if test="${!empty item }">

                    object is not null

            </c:if>

            <c:if test="${empty item }">

                   object is empty

            </c:if>

 </c:forEach>

Quote: http://blog.sina.com.cn/s/blog_6a0cd5e501011wms.html


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325912337&siteId=291194637