hello
i do it this way:
<%! String[] colors = new String[2]; int i = 0; %>
<% colors[0]="#EEEEEE"; colors[1]="#CECECE"; i = 0;%>
<logic:iterate id="..." name="..." property="...">
<% i = 1 - i; %>
<tr bgcolor= <%= colors[i] %> >
...
</tr>
</logic:iterate>
grtz
>From: "Zeltser, Mark" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: How to display odd/even rows using iterator
>Date: Wed, 18 Apr 2001 12:00:54 -0400
>
>Hello,
>
>I have the following code to build the table:
>============================================================================
>==
> <logic:iterate id="exchangeRate" name="cache"
>property="displayRates">
> <tr>
> <td class="td0" align="middle">
> <bean:write name="exchangeRate" property="currency"
>filter="true"/>
> </td>
> <td class="td0" align="middle">
> <bean:write name="exchangeRate" property="rate" filter="true"/>
> </td>
> <td class="td0" align="middle">
> <bean:write name="exchangeRate" property="rateType"
>filter="true"/>
> </td>
> </tr>
> </logic:iterate>
>============================================================================
>==
>
>I would like to set different colors for odd/even rows. How do I do this?
>
>Thanks, Mark.
>
>
>------------------------------------------------------------------------------
>This message is intended only for the personal and confidential use of the
>designated recipient(s) named above. If you are not the intended recipient
>of this message you are hereby notified that any review, dissemination,
>distribution or copying of this message is strictly prohibited. This
>communication is for information purposes only and should not be regarded
>as an offer to sell or as a solicitation of an offer to buy any financial
>product, an official confirmation of any transaction, or as an official
>statement of Lehman Brothers Inc. Email transmission cannot be guaranteed
>to be secure or error-free. Therefore, we do not represent that this
>information is complete or accurate and it should not be relied upon as
>such. All information is subject to change without notice.
>
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.