This is an exemple showing how to detect the size of a list using struts . We can use the bean:size tag that define a bean containing the number of elements in a Collection.<bean:size id="listSize" name="listForm" property="myList">
<nested:iterate property="myList" indexid="index">
.....
<% if((index.intValue() + 1) == listSize.intValue()) { %> End< % }%>
< /nested:iterate>
19 February 2008
Determining list size using Struts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment