Dan,

You can write a scriplet or java bean to check for alternate rows (like odd
and even rows).
I suggest you use style sheets to fill the row color for easy maintenance.
I've included the following code for your reference.

Cheers
--
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<% for (counter=0; counter<max; counter++) {
                if ((counter%2) == 0) {
%>
  <tr>
    <td bgcolor="#FFFFFF">White Color</td>
  </tr>
<%
                }
                else {
%>
  <tr>
    <td bgcolor="#C0C0C0">Grey Color</td>
  </tr>
<%              }
   }
%>
</table>


-----Original Message-----
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Friday, 9 February 2001 8:02
To: [EMAIL PROTECTED]
Subject: Row Color


I want to alternate row color.  I have seen it...how
is it done?  Need help asap!

Thanks

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to