title: Java Spring 4 Nested object InvalidPropertyException
body: <p>I have a problem with nested object: Every time crash with the excepion </p>
  
  <ol>
  <li>On my List with <em>Number format exception</em></li>
  <li>On my object with
  <em>org.springframework.beans.InvalidPropertyException</em></li>
  </ol>
  
  <p>Can you help me where is the error? Why the post body isn't interpreted correctly?</p>
  
  <p>Here is the AngularJS</p>
  
  <pre><code>var form = { text1: $scope.text1,
                   text2: $scope.text2};
  
  var d ={    one: "textone",
              two: "texttwo",
         myObject: form,
     myListString: ["one", "two"] };
  
  var toPost =   $.param(d);
  $http({
           method:'post',
              url:'http://localhost:8080/TestSpringPrj/test',
             data:toPost,
          headers: {'Content-Type': 'application/x-www-form-urlencoded'},
         dataType:"json"
                 })
  </code></pre>
  
  <p>My Java Class:</p>
  
  <pre><code>public class MyClassTest{
      private String one;
      private String two;
      private MyObjForm myObject;
      private List&lt;String&gt;  myListStrin
  
      public MyClassTest() {
          super();
          // TODO Auto-generated constructor stub
      }
      ///////GETTERS &amp; SETTERS
  }
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>@Controller
  public class RicercaAvanzataT {
      @RequestMapping(value="/test")
      public ModelAndView processSubmit(@ModelAttribute MyClassTesttest) {
          ModelAndView mv = new ModelAndView("response");
          System.out.println("Test was fine");
          return mv;
      }
  }
  </code></pre>