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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -