Does anyone have an example of how you would use custom tags to change the line color in a table of results, so that its a bit clearer where one line ends and another begins.
I don't know if i've made myself very clear. For example, if i had a table with 10 lines of information i want the 1st line in yellow (say) then the second in green, then the next in yellow, then green, and so on.
Debashish
--------------
SCJP2, SCWCD 1.4, PMP, ITIL Foundation, Cloud Foundry Certified Developer, AWS SA Associate
Originally posted by Tony Walters:
Well, I guess they both seem like good suggestions, but neither is suitable. I can't use style sheets because there is only one row (which is iterated over repeatedly) which means there is effectively no even row to give a style to. Also, the code has to be in a custom tag. The rest of the site is written entirely in custom tags and struts.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Originally posted by Tony Walters:
The tag needs to operate without generating html - so, having had a quick look, Davids tags don't suit as they generate the 'td' tags.
Maybe it can't be done. I thought i had seen an example somewhere but didn't bookmark it.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.