tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Purcell" <>
Subject counter in forEach tag?
Date Thu, 26 May 2005 16:58:20 GMT
I have this scenario come up occasionally, and have to opt to JSP expressions on the page
for a work-around.

                  <c:when test="${assetCollection == null}">
                    <c:forEach var="asset" items="${assetCollection}">


                      <c:out value="${asset.assetId}" />

In the forEach section, I am going to create a rows in a table which will be different colors
for each row. How can I put in a counter that I can then change the row color for? Basically,
I would like to know what asset I am on in the body.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message