title: JSTL - Loop through table rows and set background color at each oneven rows
body: <p>The purpose (according to the forEach loop) is to set a background color in every 3 rows inside the table.
  My code below doesnt work.
  The tabel is returning properly with all datas inside but no colors are set.</p>
  
  <pre><code>&lt;c:forEach var="coffee" items="${collection}"&gt;
  
  &lt;tr  class="${status.count % 3 == 0 ? 'even' : 'oneven'}"
  ${status.count % 3 == 0 ? 'even' : 'oneven'}  &gt;
  &lt;td&gt; ${coffee.brand} &lt;/td&gt;
  &lt;td&gt; ${coffee.type} &lt;/td&gt;
  &lt;td&gt; ${coffee.country} &lt;/td&gt;
  
  &lt;/tr&gt;
  
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>My CSS class</p>
  
  <pre><code>tr.even { background: red; }
  tr.odd { background: green; }
  </code></pre>
  
  <p>Thank you for your help.</p>
  
  <p>I found my answer:</p>
  
  <pre><code>&lt;h2&gt;tabel with changing colors&lt;/h2&gt;
  
      &lt;table border=1&gt;
  
          &lt;tr&gt;
              &lt;th&gt;Brand&lt;/th&gt;
              &lt;th&gt;type&lt;/th&gt;
              &lt;th&gt;Country&lt;/th&gt;
          &lt;/tr&gt;
  
          &lt;c:forEach var="coffees" items="${collection}" varStatus="status"&gt;
  
  
  
              &lt;tr class="${status.count % 3 == 0 ? 'even' : 'odd'}"
                  ${status.count % 3 == 0 ? 'even' : 'odd'}&gt;
                  &lt;td&gt;${coffees.brand}&lt;/td&gt;
                  &lt;td&gt;${coffees.type}&lt;/td&gt;
                  &lt;td&gt;${coffees.country}&lt;/td&gt;
  
              &lt;/tr&gt;
  
              &lt;/c:forEach&gt;
  
  
  
      &lt;/table&gt;
  </code></pre>