title: Save String from Servlet
body: <p>I have an HTTPServlet and it sends Data to my Database. I also want to display that Data(its a String) in an <code>&lt;table&gt;</code>.</p>
  
  <p>For that I tried to use AJAX.</p>
  
  <pre><code>var responseText = '';
  $.ajax({ type: "POST",   
           url: "/InsertServlet",   
           success : function(text)
           {
               responseText = text;
           }
  });
  
  alert(responseText);
  </code></pre>
  
  <p>Unfortunately the String is empty.
  Anyone got an idea?
  Mfg.</p>