You haven't given much context in which to help you, but I'll take a stab.
Assuming JSP 2.0, and that you are using something along the lines of the following to iterate over the collection you are using to build the table:
it should not look too different from what you already have:
If you are not using JSP 2.0, you'll need to follow Jeroen's suggestion of a combination of <c:choose> and <c:set> to set up a variable for the style class since the ternary operator (?) is not available in the JSTL 1.0 Expression Language. [ April 08, 2005: Message edited by: Bear Bibeault ]