title: Is it possible to write javascript with Java in a jsp
body: <p>If I had code similar to the following, could I run it without any issues? I assume the Java will be run before the javascript, so the javascript won't have issues, but I haven't done this before:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  &lt;% functThatOutputsJavascript() %&gt;
  &lt;/script&gt;
  </code></pre>