Hi Abhimanyu,
There are a question before I or I guess anyone on this list could be of
help.
1. How are you drawing the row in you table (i.e. JSTL's forEach tags or
something else)?
(see http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html for
informatio about JSTL's forEach)
If you are using JSTL's forEach tag here is some sample code:
<c:forEach var="row" items="${results}" varStatus="status">
<c:if test="${status.index % 2 == 0}">
<tr class='even'>
</c:if>
<c:if test="${status.index % 2 != 0}">
<tr class='odd'>
</c:if>
<!-- draw row -->
</tr>
</c:forEach>
Also, read this great article http://www.alistapart.com/articles/zebratables
*************************************
Ruben Cepeda
[EMAIL PROTECTED]
*************************************
----Original Message Follows----
From: "Abhimanyu Koul" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Mailing list" <user@struts.apache.org>
Subject: urgent
Date: Thu, 25 May 2006 11:25:46 +0530
hi all!
I want to display the records in a list using display tag in a tabular form.
But i need to alternate row background colours using css. i am not able to
figure out how.
how do we alternate styles in rows of a table using css and display tag.
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]