title: POST request with two JSON objects
body: <p>I use Spring MVC and in controller I have function:</p>
  
  <pre><code>@ResponseBody
  @RequestMapping(value = "/json/negotiation/Supervisor.json", produces = "application/json", method = RequestMethod.POST)
  public ExtResponse changeSupervisorStep(@RequestBody BatchModel&lt;Supervisor&gt; supervisors) {...}
  </code></pre>
  
  <p>From client-side I send request (use ExtJs) : </p>
  
  <pre><code>Ext.Ajax.request({
  url : '/jur_rest/json/negotiation/Supervisor.json',
  jsonData : { supervisors : {toInsert : [], toDelete : [], toUpdate : [] }}
  });
  </code></pre>
  
  <p>and everything is fine, I get object with three arrays. But I would like to send once more model from client, and if I write something like that :</p>
  
  <pre><code>@ResponseBody
  @RequestMapping(value = "/json/negotiation/Supervisor.json", produces = "application/json", method = RequestMethod.POST)
  
  public ExtResponse changeSupervisorStep(@RequestBody BatchModel&lt;Supervisor&gt; supervisors, @RequestBody Supervisor model) { ... }
  
      Ext.Ajax.request({
      url : '/jur_rest/json/negotiation/Supervisor.json',
      jsonData : { supervisors : {toInsert : [], toDelete : [], toUpdate : [] }, model : {}}
      });
  </code></pre>
  
  <p>I get error - 400 Bad Request. What's wrong? Thanks.</p>
  
  <p>EDIT:</p>
  
  <p><a href="https://stackoverflow.com/questions/3337350/learning-springs-requestbody-and-requestparam">learning Spring&#39;s @RequestBody and @RequestParam</a>
  There can be only one @RequestBody parametr in controller function. How can I pass two models in one request? Combine them into one class?</p>