This is how I have handled it in the past.

<c:choose>
<c:when test="${cssKey == 'odd'}">
<bean:define id="cssKey" value="even"/>
</c:when>
<c:otherwise>
<bean:define id="cssKey" value="odd"/>
</c:otherwise>
</c:choose>
<tr><td class="<c:out value="${cssKey}"/>">xyz</td>


Inactive hide details for "Senthilrajan VS" <[EMAIL PROTECTED]>"Senthilrajan VS" <[EMAIL PROTECTED]>


          "Senthilrajan VS" <[EMAIL PROTECTED]>

          07/13/2005 10:53 AM

          Please respond to
          "Struts Users Mailing List" <user@struts.apache.org>

To

"Sturts Mailing list" <user@struts.apache.org>

cc


Subject

Alternate color in html:iterate

Hi All,

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


Thanks & Regards,
SenthilRajan VS

Reply via email to