This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "xml data islands + alternate row color" Watch "xml data islands + alternate row color" New topic
Author

xml data islands + alternate row color

Sarran Vidyakumar
Greenhorn

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
Bartender

Joined: Oct 18, 2000
Posts: 4121

Moving to the HTML/JavaScript forum...


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

Joined: Nov 08, 2001
Posts: 15376
    
    6
when you are outputting the table you need to assign the background color to the table row.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: xml data islands + alternate row color