Do you have a dynamic number of rows that uses an iteration? If so, run a test if the index (or the count) of the iteration is even or odd. If even, make it the first color. If odd, make it the second color.
Originally posted by Liz Brown: I have some columns in table (I iterate for these columns) which must be in another color. How to go about this? example: out of 5 columns i have 2 columns with different color
Did you read the the sample of chapter two of the book Struts Recipes that the author of that book mentioned above? As he said, recipe 2.8 on p80 of the book (which is p42 of the pdf) gives you about as good an explanation as you're likely to find. I suggest taking the author's advice and having a look at this.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com