1. Have 2 classes in CSS.
2. within iterate write:
<tr class='<bean name="...." property="listRowClass" />' >
<td> <html:......................></td>
..................
................
</tr>
3. In the corresponding form:
public String getListRowClass() {
if ( "oddRow".equals(listRowClass))
listRowClass = "evenRow";
else
listRowClass = "oddRow";
return listRowClass;
}
Short & sweet isn't it?
(Basuda no comments)
Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to
it may contain confidential or privileged information. If you are not the
intended recipient, any dissemination, use, review, distribution, printing or
copying of the information contained in this e-mail message and/or attachments
to it are strictly prohibited. If you have received this communication in
error, please notify us by reply e-mail or telephone and immediately and
permanently delete the message and any attachments. Thank you