Hi, try extending the iterate tag and modify it to take in 2 (or however
many you want) stylesheet parameters.  Say styleGrey and styleWhite.  While
iterating through your collection use the different stylesheet attributes
and apply them to every other row.

I've got something that works similar to this so if you can't figure it out
let me know and I'll send it on.

Thanks,
Christine Robb
Programmer/Analyst
Pangaea Systems
PH: (250) 360-0111
FX: (250) 381-4306
www.pangaeainc.com
[EMAIL PROTECTED]


-----Original Message-----
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: How to display odd/even rows using iterator


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.

Reply via email to