title: How to bind spring MVC jsp page to two classes
body: <p>I have two classes Person and Passport. Passport has foreignkey = personid.</p>
  
  <p>This is my controller</p>
  
  <pre><code>model.addAttribute("personAttribute", new Person());
  </code></pre>
  
  <p>JSP PAge</p>
  
  <pre><code>&lt;form:form modelAttribute="personAttribute" method="POST" action="${saveUrl}"&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;form:label path="firstName"&gt;First Name:&lt;/form:label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path="firstName"/&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:errors path="firstName"/&gt;gfgf&lt;/td&gt;
          &lt;/tr&gt;
  
  
  
  
      &lt;td&gt;&lt;form:label path="country_issue"&gt;Passport:&lt;/form:label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path="country_issue"/&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:errors path="country_issue"/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>NOw i want to put country_issue in other passport table.</p>
  
  <p>I don't have that column in Person so how will i bind that in JSP page</p>
  
  <pre><code>Passport has only id , person_id, country_issue field
  </code></pre>