RE: list size from c:forEach

2003-09-04 Thread Chen, Gin
you can simply set up a var beforehand with the size of the list. Personally I have always used: bean:size id=foo collection=blah/ Look at http://jakarta.apache.org/struts/userGuide/struts-bean.html#size for the syntax that will solve your particular case. Now to reference that you can just use

RE: list size from c:forEach

2003-09-04 Thread Siggelkow, Bill
the LoopStatus for forEach (specified by the varStatus attribute) exposes the following: index (int) - position of the current item count (int) - number of times thru the loop (starting with 1) first (boolean) - indicator if this is the first iteration last (boolean) - inidicator if this is the