jsp根据某一行颜色(单选框)来其他行的颜色
<c:choose>
<c:when test="${v.color=='黑色' }">
<td style="color:black">${v.name }</td>
</c:when>
<c:when test="${v.color=='红色' }">
<td style="color:red">${v.name }</td>
</c:when>
<c:when test="${v.color=='白色' }">
<td style="color:green">${v.name }</td>
</c:when>
</c:choose>
jsp根据某一行颜色(文本框)来其他行的颜色
<c:if test="${v.color=='黑色' }">
<td style="color:black">${v.name }</td>
</c:if>
<c:if test="${v.color=='红色' }">
<td style="color:red">${v.name }</td>
</c:if>
<c:if test="${v.color=='白色' }">
<td style="color:green">${v.name }</td>
</c:if>