Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Alternate row coor using <c:forEach> tag

843840Nov 4 2007 — edited Nov 5 2007
Hello Friends,

I am using <c:forEach> tag to display the content of the arraylist.
This arraylist contains the list of the Material objects which contains the meta data.

Now I want to display the each item in the array list with alternate color.
Eg:

1st row is white and second row is grey and third row again white ....

I know we can do this using the c:choose tag but cant figure out how we can do it.

please help me out with this,


Thanks,

Aniketh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2007
Added on Nov 4 2007
4 comments
297 views