Struts iteration
1 posts in topic
Flat View  Flat View

Posted By:   Kirk_Anderson
Posted On:   Friday, February 14, 2003 10:46 AM

I would like to iterate through a collection and display the values in table rows. This is very easy with the tag. However, I would also like to alternate the background color of the table rows between results. Is there a good way to do this using the struts tag libraries?


Kirk Anderson

Re: Struts iteration

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 15, 2003 07:05 AM

You could try usin the indexID of the logic:iterate so you have the row number, and a logic:equal if it is even, for using one color, or the other color if it is odd.

About | Sitemap | Contact