Actually you don't even have to use the modulus operator there -- you can access #stat.even or #stat.odd directly.
jk On Thu, Jul 10, 2008 at 5:56 AM, ManiKanta G <[EMAIL PROTECTED]> wrote: > In which theme u want to implement? > If it is in S2, u can use DisplayTag (displaytag.sourceforge.net), which > will look almost all needs of tabular reports or form (including paging, > sorting). > > If you want to implement using <s:iterator /> tag, then use rowStatus of > the iterator and using the modulo (%) division by 2, u can get whether the > current iteration is even or odd, and based that you can decorate your > table. > > Regards, > ManiKanta > > > > Narayana S wrote: > >> Hi, >> >> as per my requirement, i have to apply two different colors to >> alternate rows.can any one guide me how to extend theme to implement this? >> >> >> > > > > ********** DISCLAIMER ********** > Information contained and transmitted by this E-MAIL is proprietary to Sify > Limited and is intended for use only by the individual or entity to which it > is addressed, and may contain information that is privileged, confidential > or exempt from disclosure under applicable law. If this is a forwarded > message, the content of this E-MAIL may not have been sent with the > authority of the Company. If you are not the intended recipient, an agent of > the intended recipient or a person responsible for delivering the > information to the named recipient, you are notified that any use, > distribution, transmission, printing, copying or dissemination of this > information in any way or in any manner is strictly prohibited. If you have > received this communication in error, please delete this mail & notify us > immediately at [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com