title: Spring mvc - select set selected option
body: <p>I'm looking for a while now to find why it is not working for me...
  I have a form to modify my client. The form display correctly almost all the informations.
  My client have a "referent" and I can choose it from a list. The list is correctly filled but the referent already saved in my client is not selected...</p>
  
  <p>The Client Dto</p>
  
  <pre><code>public class AbstractClientDto implements Demarchable{
  
  private AbstractEmployeDto referent;
  .... // getter and setter
  </code></pre>
  
  <p>The Controller</p>
  
  <pre><code> @RequestMapping(value = "/modify")  
   public ModelAndView modify(@RequestParam("clientId") Long id) {  
       Map&lt;String, Object&gt; model = new HashMap&lt;String, Object&gt;();  
       AbstractClientDto client = clientService.getClient(id);
       model.put("command", client);
       List&lt;AbstractEmployeDto&gt; employes = employeService.getAllEmployes();
       model.put("employes", employes);
       return new ModelAndView("/clients/modify", model);  
   } 
  </code></pre>
  
  <p>The jsp</p>
  
  <pre><code>       &lt;tr&gt;  
         &lt;td&gt;&lt;form:label path="referent"&gt;Réréfente:&lt;/form:label&gt;&lt;/td&gt;  
         &lt;td&gt;
          &lt;form:select path="referent" items="${employes}"itemValue="id" itemLabel="nomPrenom" &gt;
          &lt;/form:select&gt;
         &lt;/td&gt;  
     &lt;/tr&gt;  
  </code></pre>
  
  <p>thanks for your help!</p>