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:[EMAIL PROTECTED]
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.
>From what I've read, the varStatus attribute of the <c:forEach> tag exposes
an instance of LoopStatus, but I can't find any docs on the LoopStatus
class.

I'm guessing that since <c:forEach> exposes an Iterator, not a List, that
this is likely not supported, but I figured it couldn't hurt to ask.

Thanks in advance for your advice.

David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to