title: How to combine javascript code with java inside a jsp?
body: <p>I have this <code>cezar.jsp</code> file and the following code inside my <code>head</code> below. 
  I have a <code>textarea</code> and I want to pass the value as a parameter for a <code>java</code> function.</p>
  
  <pre><code>&lt;head&gt;
      &lt;%@ page import="cpd.CezarBun" %&gt;
      &lt;script&gt;
      &lt;%
          cpd.CezarBun cezar = new cpd.CezarBun();
  
          //don`t know how to use scripplets here
          String contentIn = document.getElementById('myTextArea').value; 
          cezar.criptare(contentIn); //takes a String parameter
  
      %&gt;
      &lt;/scrupt&gt;
  &lt;/head&gt;
  </code></pre>