title: call a javascript function inside tag library jsp
body: <p>How to call a javascript function in jsp within tab library. I have tried something like, below is my code.</p>
  
  <p>JavaScript function:</p>
  
  <pre><code>    function myconfirmBox(msg){ alert(msg);}
  </code></pre>
  
  <p>JSP code:</p>
  
  <pre><code>&lt;s:if test="Messages()"&gt;
              myconfirmBox("hello");
          &lt;/s:if&gt;
  </code></pre>
  
  <p>What am i actually doing wrong? </p>