You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Reyes <ri...@gmail.com> on 2005/03/18 06:39:53 UTC

last element of logic iterate

Hello All ,

How do you determine if your on the last element of your logic:iterate loop?

Thanks
Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: last element of logic iterate

Posted by Richard Reyes <ri...@gmail.com>.
thanks


On Fri, 18 Mar 2005 03:04:24 -0500, Erik Weber <er...@mindspring.com> wrote:
> One way is to use a combination of logic:iterate's indexId attribute
> (serves as a loop counter) and the bean:size tag (can give the total
> size of a collection before you iterate). Then you could use a
> logic:equal test inside the iteration.
> 
> Erik
> 
> 
> Richard Reyes wrote:
> 
> >Hello All ,
> >
> >How do you determine if your on the last element of your logic:iterate loop?
> >
> >Thanks
> >Richard
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: last element of logic iterate

Posted by Erik Weber <er...@mindspring.com>.
One way is to use a combination of logic:iterate's indexId attribute 
(serves as a loop counter) and the bean:size tag (can give the total 
size of a collection before you iterate). Then you could use a 
logic:equal test inside the iteration.

Erik


Richard Reyes wrote:

>Hello All ,
>
>How do you determine if your on the last element of your logic:iterate loop?
>
>Thanks
>Richard
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org