title: How to pass multiple form parameter in "th:action" using themleaf
body: <p>I am trying to pass parameter in <code>th:action</code> </p>
  
  <pre><code>&lt;form class="form-inline" th:object="${search}" method="get" action="search.html" th:action="@{'/hotels/'+${search.location}+'/'+${search.adults}+'/'+${search.dateCheckOut}+'/'+${search.dateCheckIn}}"  id="search-hotel-form"&gt;
  
      &lt;select class="selectpicker form-control input-lt" th:field="*{location}" id="city"&gt;
          &lt;option value="delhi"&gt;Delhi&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;input type='text' th:field="*{dateCheckIn}" id="datetimepicker1" /&gt;
  
      &lt;input type='text' th:field="*{dateCheckOut}" id="datetimepicker2" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>then Spring MVC contoller part </p>
  
  <pre><code>@RequestMapping(value = "/hotelsparam/{dateCheckIn}/{dateCheckOut}/{location}", method = RequestMethod.POST)
  public ModelAndView searchHotel(@PathVariable("dateCheckOut") Date dateCheckOut, @PathVariable("dateCheckIn") Date dateCheckIn,@PathVariable("location") String location, BindingResult bindingResult) throws ParseException {....
      //remove implemntation to make it precise
  }
  </code></pre>
  
  <p>but getting error is </p>
  
  <pre><code>HTTP Status 500 - Request processing failed; nested exception is java.text.ParseException: Unparseable date: "null"
  </code></pre>
  
  <p>URL Part seem like this </p>
  
  <pre><code>http://localhost:8080/hotels/null/0/null/null?location=delhi&amp;dateCheckIn=04%2F07%2F2015+09%3A00&amp;dateCheckOut=04%2F07%2F2015+20%3A00&amp;adults=1
  </code></pre>