title: Spring MVC selected value in form:selected after form validation error
body: <p>I have a problem with the validation form, the form have a lot of different fields (input text fields, select option, multiple select option...). I have developed all the logical sourcecode about validation form with spring security, but when the validation form fails (for example, a user don't fill anything) and reload the form again all the input text fields are correctly filled but the select option and multiple select options have been deleted and the user must select it again. Why not get filled as the text fields?</p>
  
  <p>This is a piece of my view:</p>
  
  <pre><code>    &lt;tr&gt;
              &lt;td&gt;&lt;form:label path="TechContactName"&gt;&lt;spring:message code="label.techcontactname"/&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;/form:label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:input path="TechContactName" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:errors path="techContactName" cssClass="error" /&gt;&lt;/td&gt;
          &lt;/tr&gt; 
  
  
  &lt;tr&gt;
              &lt;td&gt;&lt;form:label path="LicenseProduct"&gt;&lt;spring:message code="label.licenseproduct"/&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;/form:label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:select path="licenseProduct" id="selectProduct" size="6" &gt;
                          &lt;option &gt;Option 1&lt;/option&gt;
                          &lt;option &gt;Option 2&lt;/option&gt;
                          &lt;option &gt;Option 3&lt;/option&gt;
                          &lt;option &gt;Option 4&lt;/option&gt;
                          &lt;option &gt;Option 5&lt;/option&gt;
                          &lt;option &gt;Option 6&lt;/option&gt;
                  &lt;/form:select&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:errors path="licenseProduct" cssClass="error" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
              &lt;td&gt;&lt;form:label path="DeployCountries"&gt;&lt;spring:message code="label.deploycountries"/&gt;&lt;sup&gt;*&lt;/sup&gt;&lt;/form:label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;form:select path="deployCountries" id="selectCountries" multiple="multiple" &gt;
                         &lt;option value="AT"&gt;Austria&lt;/option&gt;
                         &lt;option value="BE"&gt;Belgium&lt;/option&gt;
                         &lt;option value="DK"&gt;Denmark&lt;/option&gt;
                         &lt;option value="FI"&gt;Finland&lt;/option&gt;
                         &lt;option value="FR"&gt;France&lt;/option&gt;
                         &lt;option value="DE"&gt;Germany&lt;/option&gt;
                  &lt;/form:select&gt; &lt;/td&gt;
             &lt;td&gt;&lt;form:errors path="deployCountries" cssClass="error" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>And my controller:</p>
  
  <pre><code>@SuppressWarnings("finally")
      @RequestMapping(value = "/add", method = RequestMethod.POST)
      public String addLicense(@Valid @ModelAttribute(value="license")  LicenseEntity license, BindingResult result, ModelMap map, HttpServletRequest request) 
      {
          if(result.hasErrors()){
              System.out.println("validation errors size..."+result.getErrorCount());
  
              return "editLicenseList";
          } else {
              //all works correctly           
          }
  
      }
  </code></pre>
  
  <p>The form input text field si correctly filled when the validation fails but the form:select and form:select multiple fail and reload the form with any value selected.</p>
  
  <p>Thanks in advance!</p>