<table>
<c:forEach items="${requestScope['rfpq.mailRecievers']}" var="row">
<tr>
<td> </td>
<td style="color: #000000; font-size: 11px;" height="17" width="450"> ${row} |</td>
</tr>
</c:forEach>
</table>
Input is:
A0001 |
A0002 |
A0003 |
A0004 |
A0005 |
How will I get input like(with colors):
A0001 | (color: gray) A0002 | A0003 | (color: gray) A0004
You can use the
varStatusattribute to access the LoopTagStatus instance for the current<c:forEach>, and itscountproperty gives you the loop counter. The you can use this loop counter to style your odd column and even column.