I think this is one for the users list but we did using jstl foreach tag like so:
<c:forEach items="${my.collection}" var="item" varStatus="status"> <c:choose> <c:when test="${status.count % 2 == 0}"> <!-- table row one colour--> </c:when> <c:otherwise> <!-- table row another colour--> </c:otherwise> </c:choose> cheers Ben ----- Original Message ----- From: Ramesh Kannery <[EMAIL PROTECTED]> Date: Friday, August 22, 2003 3:07 am Subject: how to use index in iterate tag > Hi > > In a table i hav to show rows in different colors. > Odd nos in one color and even nos in another color. > I thnk i can achieve through logic\iterate tag. > how to use the index id for this purpose? > > regards > ramesh > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]