I'm trying to figure out how to do a green-bar effect (different backround
colors for every other row of a table) with struts/jsp. I am using a
tagified javax.sql.Rowset. I can iterate through the rowset via my tags
(reworked jakarta DBTags). The problem, more of a mental block, is how do I
alternate the backround colors of the html rows I am writing WITHOUT
resorting to scriptlets. I have just added a tag to get the current row, so
I have that returing, but what do I do with it?
The logic tags in struts deal only with comparisons to constants. I need to
do some math to determine whether the current row is odd/even so I can set
the backround.
Is it easier than this and I'm missing it?
My goal here is not to do any scriplets. I'm putting together a set of tags
to help our web guy build pages using only tags.
Thanks for any help,
Bill Pfeiffer