> i have a question about the <logic:iterate> tag. My tag 
> iterates over an ArrayList which contains an amount of beans. 
> However, in the last iteration i want to perform some special 
> action. My current code looks something like this:
> 
> <logic:iterate id="foo" name="bar" scope="session" indexId="index">
> 
>     ...
>     <logic:equal value="..." name="index">
>         ...
>     </logic:equal>
> 
> </logic:iterate>

This is something that JSTL does *extremely* well:

<c:forEach items="foo.bar" var="bar" varStat="stat">
   <c:if test="stat.last">
       <do what needs to be done
   </c:if>
 
</c:forEach>

--
Tim Slattery
[EMAIL PROTECTED]


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

Reply via email to