java - Can I somehow iterate through collection with definite initial and end index using standard JSTL? Or should I create a custom jstl tag? -
i need create pagination on jsp page list of objects, need iterate through range of indexes.
suppose
class person { int age; string name; }
and personlist list of persons. can iterate this...
<c:foreach var="person" items="${personlist}" varstatus="status"> <c:if test="${status.index >= startindex && status.index < endindex}"> ${person} </c:if> </c:foreach>
Comments
Post a Comment