title: Calling Javascript function from Servlet
body: <p>This is my situation:</p>
  
  <p>I want to call <code>jAlert(String)</code> Javascript method from a servlet linked to a JSP file.</p>
  
  <p>I tried with the following</p>
  
  <p><code>response.getWriter().println("&lt;script type='text/javascript'&gt;jAlert('Hello');&lt;/script&gt;");</code></p>
  
  <p>but there are no results.</p>
  
  <p>After, I found a tool called <code>Rhino</code>, from Mozilla, but I don't know how to use. Help!</p>
  
  <p>Thanks.</p>