What are you suggesting when you mention having
iterate work like a pager?  Do you mean having the
iterate tag call a method on a bean before or after it
iterates?  If the interface gave the bean a handle on
the environment then it could even a create a variable
that could have the row color.

David

--- Ted Husted <[EMAIL PROTECTED]> wrote:
> 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/


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to