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/
- How to display odd/even rows using iterator Zeltser, Mark
- Re: How to display odd/even rows using iterator Chris Butler
- Re: How to display odd/even rows using iterator Ted Husted
- Re: How to display odd/even rows using iterator David Winterfeldt
- RE: How to display odd/even rows using iterator Christine Robb
- RE: How to display odd/even rows using iterator Anthony Martin
- RE: How to display odd/even rows using iterator Scott Walter
- Re: How to display odd/even rows using iter... Bernard Genin
- Re: How to display odd/even rows using iterator Bart Moberts
- RE: How to display odd/even rows using iterator Zeltser, Mark