title: Upating a TextBox with a Ajax Response
body: <p>I just want to update a textbox with the response of an ajax call. i am getting the response and have assigned it to the textbox using </p>
  
  <pre><code>document.getElementById("testPad").value = xmlHttpRequest.responseText;
  </code></pre>
  
  <p>its getting updated with the entire response text which happens to be the entire HTML page.</p>
  
  <p>on the server action i am sending the response as this:</p>
  
  <pre><code>response.setContentType("text/plain");
  response.getWriter().write(output);
  </code></pre>
  
  <p>Although it sounds trivial, i am facing a hell of time with this, guys please help. TIA.</p>