Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes xml data islands + alternate row color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "xml data islands + alternate row color" Watch "xml data islands + alternate row color" New topic

xml data islands + alternate row color

Sarran Vidyakumar

Joined: Mar 26, 2003
Posts: 28
My jsp pages has an embedded xml data island which is output as a html table. Is there a way to alternate the colors of the rows ??
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Moving to the HTML/JavaScript forum...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
when you are outputting the table you need to assign the background color to the table row.
I agree. Here's the link:
subject: xml data islands + alternate row color
Similar Threads
How to avoid special characters while reading xml through java
Colletion class to to find unique elements
Annotations and EJB's
Determining when to use an attribute vs. an element
How to do XML to DB using Message Driven Bean?