tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siggelkow, Bill" <bill.siggel...@mirant.com>
Subject RE: list size from <c:forEach>
Date Thu, 04 Sep 2003 18:39:42 GMT
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 last iteration

-----Original Message-----
From: David Chelimsky [mailto:david@chelimsky.org]
Sent: Thursday, September 04, 2003 2:36 PM
To: Tag Libraries Users List
Subject: list size from <c:forEach>


Hi. I need to get the size of a list through which I'm iterating via
<c:forEach> before the last iteration. While I could add a property to my
form bean, I wonder if there's a way to access this from the loop status.
Mime
View raw message