On 12/19/2000 at 1:16 AM Wong Kok Wai wrote:
> I'm using the logic:iterate tag to render a table. Now I need to show
alternating colours for odd and even table rows. How do I achieve this
effect together with the logic:iterate tag?

Inside the HTML that you are iterating, you might be able to call a
JavaScript to set the font color for each row, and have the JavaScript
toggle a variable to return one color then the other. 

Of course, this script would be processed at display-time by the
browser, rather than by Struts.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/


Reply via email to