Próbuję to, ale jej będzie inny części zawszeJSP mod operator nie działa
<c:forEach items="${records}" var="field" varStatus="counter">
<c:choose>
<c:when test="${counter.count mod 2 == 0}">
<div class="classEven">
</c:when>
<c:otherwise>
<div class="classOdd">
</c:otherwise>
</c:choose>
sample text here
</div>
</c:forEach>
Co z tego?
Czy próbowałeś z '$ {(counter.count mod 2) == 0} '? –
tak, teraz działa. Dzięki JB – user965884