The tag does have an optional attribute called "indexId" whose value is the
name of a page scope bean to hold the index.  I think that this index bean
must be of type Integer (someone correct me if this is wrong), so you would
do a <bean:define> for the Integer bean with an appropriate name.  Then you
can reference the bean with <logic:equals> or <bean:write> tags within the
<logic:iterator> tag.  Or you can just use a scriplet. <<horrified gasps
from the peanut gallery>> :)

I'm assuming you could re-use the same index bean for different
<logic:iterator> tags as long as they are not nested inside one another..

> -----Original Message-----
> From: Mannem, Taati [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Iterator Simple
>
>
> Guys,
>       When I iterate thru <logic:iterator> how do I know that I am in the
> last element?
> I have tried using some other way like getting the index and comparing but
> it doesnt seem to work..
> The reason why I want to do this
>
> if I am in the last element I need to print something and if I am
> not then I
> dont have to print.
> Thanks in advance.
>
> Regards,
> Taati
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>


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

Reply via email to