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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -