title: How can I get the spring error count in a JSP
body: <p>I am trying to do something conditionally in my JSP depending on if there are errors or not in my JSP, something like</p>
  
  <pre><code>&lt;c:choose&gt;
      &lt;c:when test="${errors.errorCount &gt; 0}"&gt;
         &lt;!-- do something --&gt;
      &lt;/c:when&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>However, it always evaluates as false, even when there are errors.</p>
  
  <p>What is the correct way to evaluate this?</p>