title: Submit a handsontable to a spring mvc3 controller - Content type 'application/x-www-form-urlencoded' not supported
body: <p>im new to spring mvc3 and am looking at a jquery handsontable example. </p>
  
  <p>here is my part of my jsp page that includes the form</p>
  
  <pre><code>  &lt;form:form action="${pageContext.request.contextPath}/app/${application.id}/user/bulkImport" method="POST"&gt;   
          &lt;div id="dataTable"&gt;&lt;/div&gt;
          &lt;script&gt;
              var data = [
                  ["156428", "admin,SCC,Superuser"],
                  ["839302", "SCC"]
              ];
              $("#dataTable").handsontable({
                  data: data,
                  startRows: 3,
                  startCols: 2
              });
  &lt;/script&gt;   
     &lt;script&gt;
     function submitEntries(){
          alert("in");
              var tableData = $("#dataTable").handsontable("getData");
              var formDataJson = JSON.stringify({"data":tableData});
               jQuery.ajax({
                  url: 'bulkImport',
                  type: 'POST',
                  contentType: 'application/json; charset=utf-8',
                  data: formDataJson,
                  'success': function (e) {
                      var resultString = 'saved';
                      $('#serverResults').html(resultString);
                  }
              });
     }
      &lt;/script&gt;
  </code></pre>
  
  <p>controller: </p>
  
  <pre><code>@RequestMapping(value="/bulkImport", method = RequestMethod.POST)
      public String importUsers(@RequestBody BulkUserImportEntries entries)
              throws Exception {
  
          Iterator itr = entries.getData().iterator();
          while(itr.hasNext()) {
              Object obj = (Object)itr.next();
          }
  
          return "redirect:/app/{appId}/user/{id}";
      }
  </code></pre>
  
  <p>BulkUserImportEntries class:</p>
  
  <pre><code>public class BulkUserImportEntries implements Serializable{ 
        private List&lt;Object[]&gt; data;
  
        protected BulkUserImportEntries() {}
        protected BulkUserImportEntries(List&lt;Object[]&gt; data) {
              this.data = data;
        }
  
        public List&lt;Object[]&gt; getData() {
              return data;
        }
  }
  </code></pre>
  
  <p>im getting this error when submitting the form. </p>
  
  <p>Content type 'application/x-www-form-urlencoded' not supported</p>
  
  <p>I would like to recieve the array of values from my jsp to be able to iterate it on the controller. i see this is possible on the example but this is using a modelAttribute . Again im pretty new and have been stuck here for a week now :(</p>
  
  <p>Thanks for all the help</p>