Click to See Complete Forum and Search --> : color of a cell in the table....dynamically


oxygenan
10-26-2007, 03:54 PM
hi,

In my jsp..

based on a String variable value...i want to change the color of a cell in the
table....

I tried <td bgcolor='<%=.......%>'></td>

but it dint work out..

any other solutions...

mdjo
10-29-2007, 05:49 PM
Your syntax is correct. Well, is that EXACTLY what you put. Because that would give an empty cell. If you're trying to just make a box of a certain color, put an "&nbsp;" inside the cell. If you actually have some text in there, what you've done should have worked, and the problem must be that the color name or code you've given isn't valid.