title: how to bind data to list in spring form
body: <p>I have a spring form with having backing object for it. The form is like this- </p>
  
  <pre><code>&lt;sf:form cssClass="form-horizontal" commandName="campaignModel" method="post"&gt;
  &lt;sf:input path="campaign.name" class="form-control" /&gt; 
  &lt;sf:input path="landingPageModels.landingPage.url" class="form-control" /&gt;
  &lt;/sf:form&gt;
  </code></pre>
  
  <p>Model class(Form backing Object) -</p>
  
  <p><strong>CampaignModel.java</strong></p>
  
  <pre><code>public class CampaignModel { 
  private Campaign campaign = new CampaignImpl();
  private List&lt;LandingPageModel&gt; landingPageModels = new Arraylist&lt;LandingPageModel&gt;;
  public Campaign getCampaign() {
      return campaign;
  }
  public void setCampaign(Campaign campaign) {
      this.campaign = campaign;
  }
  public List&lt;LandingPageModel&gt; getLandingPageModels() {
      return landingPageModels;
  }
  public void setLandingPageModels(List&lt;LandingPageModel&gt; landingPageModels) {
      this.landingPageModels = landingPageModels;
  }
  </code></pre>
  
  <p><strong>LandingPageModel.java</strong> is - </p>
  
  <pre><code>public class LandingPageModel {
  private LandingPage landingPage = new LandingPageImpl();
  private List&lt;LandingPageParameterImpl&gt; landingPageParameters = new ArrayList&lt;LandingPageParameterImpl&gt;();
  
  public LandingPage getLandingPage() {
      return landingPage;
  }
  public void setLandingPage(LandingPage landingPage) {
      this.landingPage = landingPage;
  }
  public List&lt;LandingPageParameterImpl&gt; getLandingPageParameters() {
      return landingPageParameters;
  }
  public void setLandingPageParameters(List&lt;LandingPageParameterImpl&gt; landingPageParameters) {
      this.landingPageParameters = landingPageParameters;
  } 
  }
  </code></pre>
  
  <p><strong>LandingPage.java</strong> is - </p>
  
  <pre><code>public class LandingPageImpl extends EntityImpl implements LandingPage {
  
  private String url;
  
  public String getUrl() {
      return url;
  }
  
  public void setUrl(String url) {
      this.url = url;
  } }
  </code></pre>
  
  <p>So i want that i can insert many objects of landingPage (having their own url property) in landingPageModels list. That means i can have mulitple input tag having url property like this - </p>
  
  <pre><code>&lt;sf:input path="landingPageModels.landingPage.url" class="form-control" /&gt;
  &lt;sf:input path="landingPageModels.landingPage.url" class="form-control" /&gt;
  &lt;sf:input path="landingPageModels.landingPage.url" class="form-control" /&gt;
  </code></pre>
  
  <p>But when executing this code, spring gives me error that landingPage property of landingPageModels has not getter setter method. How to solve it and how to take multiple value like this ?</p>