We've had success doing this with JSP. The following code snippet may help.
<%
String DARK_COLOR = "DarkColor";
String LIGHT_COLOR = "LightColor";
String currentColor = DARK_COLOR;
int i = 0;
%>
<struts:enumerate id="searchRow"
name="searchForm" property="SearchResults">
<%
if ( i % 2 == 0)
{
currentColor = DARK_COLOR;
}
else
{
currentColor = LIGHT_COLOR;
}
i++;
%>
<TR ALIGN="center" class="<%=currentColor %>">
Thanks,
Greg
-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Tuesday, December 19, 2000 3:16 AM
To: [EMAIL PROTECTED]
Subject: logic:iterate and table row renderering
I'm using the logic:iterate tag to render a table. Now
I need to show alternating colours for odd and even
table rows. How do I achieve this effect together with
the logic:iterate tag?
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/