title: How to bind list (in list) binding to Spring MVC?
body: <p>I have 3 model classes for binding.</p>
  
  <pre><code>    class FormBean {
            private String a;
            private List&lt;A&gt; aList;
  
        //.. get/set
  
     }
  
  
  class A {
     private String aname;
     List&lt;B&gt; bList;
  
     // get/set
  
  }
  
  class B {
     private String name;
     private String id;
     // get/set
      ..
  }
  </code></pre>
  
  <p>And Here is my Controller</p>
  
  <pre><code>public ModelAndView controlMethod (@ModelAttribute FormBean param) {
  
         ...
  }
  </code></pre>
  
  <p>==============</p>
  
  <p>And the client-side,</p>
  
  <p>The codes that I made like this.</p>
  
  <pre><code>&lt;form id="userInsert" name="userInsert" method="post" enctype="multipart/form-data" &gt;
  
      &lt;input type="text" name="aList[0].bList[0].name" value="aaa"/&gt;
      &lt;input type="text" name="aList[0].bList[1].name" value="aaa1"/&gt;
      &lt;input type="text" name="aList[0].bList[2].name" value="aaa2"/&gt;
  
  
      &lt;input type="text" name="aList[1].bList[0].name" value="aaa3"/&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>===============</p>
  
  <p>But </p>
  
  <p>It's not working well. </p>
  
  <p>But when I request like this.</p>
  
  <pre><code>&lt;input type="text" name="aList[0].aname" value="aaa"/&gt;
  </code></pre>
  
  <p>then , it's working well..</p>
  
  <p>I want to know what is problem.. and What should I do?</p>
  
  <p>Or It can bind or not.</p>
  
  <p>Regards.</p>