title: Call javascript function with if JSTL
body: <p>Is there a way to call a javascript function inside an if with JSTL?</p>
  
  <p>Here's the code </p>
  
  <pre><code>&lt;c:choose&gt;
                  &lt;c:when test="${orderUploadAction.errors.size()==0}"&gt;
  
                  CALL JS FUNCTION HERE
  
                  &lt;/c:when&gt;
                  &lt;c:otherwise&gt;
  
                  CALL JS FUNCTION HERE
  
                  &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>