In action class which generate the table row out put
Declare one temp variable which will you can use in decision making.
Suppose you want to switch between colors red and green.
Code will be like this
Byte switchcolor=0.
If (switchcolor=0) {
Row with red color.
Switchcolor++;
} else {
Row with green color.
Switchcolor--;
}
-ni3.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 June 2005 13:01
To: [email protected]
Subject: Toggle Colors between Rows
What is the best way to toggle colors between rows using logic:iterate
keeping in mind the View (MVC....no scriptlets!!) best practice.?
Amitava Basak
ASE
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]