title: Probleming refreshing jspf using jQuery ajax and Spring Controller
body: <p>I am trying to send a new user name to add to one of the multiple tables on my jsp. Each table is defined in a jspf file and included in the jsp. I am trying to use jQuery.ajax() to send the name to my Spring Controller (which then does all the middle and back tier work). When the Spring Controller returns I want the one table to update automatically. I don't want to refresh the entire page.</p>
  
  <p>How do I do this? What do I return from my Spring Controller? I bascially need to refresh the one table (which is in a single jspf file).</p>
  
  <p>Here is an example of the ajax call I am using:</p>
  
  <pre><code>$.ajax('/path/addUser.html', {
    type: "POST",
    data: { "userName" : "bob" },
    success: function(data) {
       // do what if anything?
    },
    error: function(jqXHR, textStatus, errorThrown) {
      Ext.MessageBox.alert('Error', errorThrown);
    }
  });
  </code></pre>