struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Reyes <richards.l...@gmail.com>
Subject Re: last element of logic iterate
Date Mon, 21 Mar 2005 10:17:29 GMT
thanks


On Fri, 18 Mar 2005 09:06:38 -0500, Slattery, Tim - BLS
<Slattery.Tim@bls.gov> wrote:
> > How do you determine if your on the last element of your
> > logic:iterate loop?
> 
> JSTL makes this very easy. Something like:
> 
> <c:forEach items="${someCollection}" var="oneItem" varStatus="status">
>      <c:if test="${status.last}">
>             stuff to do in the last iteration
>       </c:if>
> </c:forEach>
> 
> --
> Tim Slattery
> Slattery_T@bls.gov
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message