struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slattery, Tim - BLS" <Slattery....@bls.gov>
Subject RE: logic:iterate question
Date Fri, 06 Feb 2004 14:45:49 GMT
> shouldn't that be?
> >    <c:if test="${stat.last}">

Yes, it sure should. And the first line should be:

 <c:forEach items="${foo.bar}" var="bar" varStat="stat">

So the whole thing should look like this:

<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
Slattery_T@bls.gov


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


Mime
View raw message