title: JSP mod operator not working
body: <p>I am trying this but its going to else part always</p>
  
  <pre><code> &lt;c:forEach items="${records}" var="field" varStatus="counter"&gt;
  
      &lt;c:choose&gt;
          &lt;c:when test="${counter.count mod 2 == 0}"&gt;
              &lt;div class="classEven"&gt;
          &lt;/c:when&gt;
          &lt;c:otherwise&gt;
              &lt;div class="classOdd"&gt;
          &lt;/c:otherwise&gt;
      &lt;/c:choose&gt;
          sample text here
  
          &lt;/div&gt;          
  
   &lt;/c:forEach&gt;
  </code></pre>
  
  <p>What's wrong with this?</p>