title: Spring form select not displaying the value as the selected value
body: <p>I am using a form select , however the value for the drop down is not showing up as selected.I have the following Model</p>
  
  <pre><code> public class Customer{
   public ConditionalBean conditional
  }
  </code></pre>
  
  <p>The ConditionalBean is as follows:</p>
  
  <pre><code>public class ConditionalBean {
   private String conditionalName;
   private String conditionalType;
  }
  </code></pre>
  
  <p>In the jsp I have the following</p>
  
  <pre><code>&lt;form:select path=customer.conditional.conditionalName&gt;
    &lt;form:options items="${optionsMap}"/&gt;
   &lt;/form:select&gt;
  </code></pre>
  
  <p>When I display the conditional name </p>
  
  <pre><code>   &lt;td&gt;${customer.conditional.conditionalName}&lt;/td&gt;
  </code></pre>
  
  <p>it is correctly showing up</p>
  
  <p>However on the drop down the value of the select is not being shown as selected.
  I have been able to successfully do it for other dropdowns ,where the path references a regular String.
  Here, it is the ConditionalBean object's conditonalName.</p>
  
  <p>Any idea how to fix this? I looked into using  using a PropertyEditorSupport but not sure how to use it.</p>
  
  <p>The options for the select were created as follows:</p>
  
  <pre><code>   Map&lt;String,String&gt;optionsMap = new HashMap&lt;String,String&gt;
     optionsMap.put(conditionalName,conditionalName);
  </code></pre>