From: "Senthilrajan VS" <[EMAIL PROTECTED]>

> I'm using html:iterate to display the set of records in the table. Is
there any way
> to put the alternate color using CSS classes in tag libraries

There is, but a FAR better idea is to use DisplayTag:
    http://displaytag.sourceforge.net/

I have one page where I need to have two rows for each 'record' so I do that
one manually:

    <c:forEach items="${profileView.research.clearanceRequestHistory}"
var="notice" varStatus="status">
          <c:set var="cellColor">
            <c:choose>
              <c:when test="${status.index % 2 == 0}">white</c:when>
              <c:otherwise>#fce6c4</c:otherwise>
            </c:choose>
          </c:set>
        <tr style="background-color: <c:out
value='${cellColor}'/>;">...</tr>
        <tr style="background-color: <c:out
value='${cellColor}'/>;">...</tr>
    </c:forEach>

-- 
Wendy Smoak


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

Reply via email to