title: Check Using JSTL regarding Spring Binding Error
body: <p>I have been trying this for a while but can't find the right solution.</p>
  
  <p>I want to use JSTL to check if there is any binding errors (field error or global error) that happened in my Spring MVC 2.5.</p>
  
  <p>I know I can use this code:</p>
  
  <pre><code>&lt;p&gt;
      &lt;spring:hasBindErrors name="searchItems"&gt;
          An Error has occured
      &lt;/spring:hasBindErrors&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>But I want to utilize JSTL to check for any errors.</p>
  
  <p>I have tried this one using JSTL:</p>
  
  <pre><code>&lt;c:if test="${not empty errors}"&gt;
      An Error has occured
  &lt;/c:if&gt;
  </code></pre>
  
  <p>But it seems that I cannot catch it correctly.</p>
  
  <p>I need to used JSTL since there are other parts of the JSP that relies on the presence or absence of a binding errors.</p>