This is another one that ought to go to the user list.
I've not used jstl, but first impressions are: yegods that's ugly! (maybe less so when not using a vtl/jstl combination).
Neither
'$'{idx.count % 2 == 1}
or even
${idx.count % 2 == 1}
are valid vtl so that may be the problem. Possibly try this instead:
${idx.count} % 2 == 1- simon
Nuggihalli,Naren wrote:
I am trying to have alternate row color for and I am using the following code, and it jumps to <tr bgcolor="#DAE2E8"> (second color) without checking the if the id id odd or even
<c:choose> <c:when test="'$'{idx.count % 2 == 1}"> <tr bgcolor="#E7E8E9"> </c:when> <c:otherwise> <tr bgcolor="#DAE2E8"> </c:otherwise> </c:choose>
if I use <c:when test="${idx.count % 2 == 1}"> , it gives parsing error
any clues?
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
