<% int i = 0; %>
<logic:iterate>
<% request.setAttribute("bgColor", (i++ % 2) == 0 ? "#ff0000" : "#00ff00" %>
<tr bgcolor="<c:out value="${bgColor}"/>">
<td>...<td>
</tr></logic:iterate>
<logic:iterate>
<% request.setAttribute("bgColor", (i++ % 2) == 0 ? "#ff0000" : "#00ff00" %>
<tr bgcolor="<c:out value="${bgColor}"/>">
<td>...<td>
</tr></logic:iterate>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货