I like Christine's answer better, but here's a simple solution using
(ugh) a scriptlet. 

<tr>
<% int i = 0; %>
<logic:iterate id="lot" name="rows" >
<% i++; if ( i % 2 == 0) { %>
<tr bgcolor="#EEEEEE">
<% } else { %>
<tr bgcolor="#FFFFFF">
<% } %>
    <td> { columns } </td>
  </tr>
</logic:iterate>

What I would really like to see (before I write it myself) is code for
using iterate as a pager. The hooks seem to be there.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Reply via email to