title: How to pass th:object values from html to controller
body: <p>How to pass thymeleaf(th:object) values to controller.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form id="searchPersonForm" action="#" th:object="${person}" method="post" &gt;  
  &lt;/form&gt;
  </code></pre>
  
  <p>SearchPersonController:</p>
  
  <pre><code>@RequestMapping(value = "/modify/{pid}", method = RequestMethod.GET)
      public String modifyPersonData(Principal principal, @ModelAttribute("person") Person person, UserRoles userRoles, Model model, @PathVariable("pid") Long pid ) {
           //modify data
      }
  </code></pre>
  
  <p>I am trying to pass like <code>@ModelAttribute("person") Person person</code> but this is not retrieving form values from previous page.</p>
  
  <p>Can anyone help on this.</p>
  
  <p>Thanks.</p>