title: Spring form option default selected
body: <p>I am facing  problem in getting a default value selected in the dropdown.
  Code in my jsp is as below</p>
  
  <pre><code>&lt;form:select path="codes" multiple="false"&gt;
      &lt;form:option value="NONE" label="--- Select Code ---" /&gt;
      &lt;form:options items="${statusQueryForm.codes}" /&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>Below is the code in statusQueryForm:</p>
  
  <pre><code>public void setCodes(Collection&lt;String&gt; codes) {
      this.codes = codes ;
  }
  public Collection&lt;String&gt; getCodes() {
      return codes;
  }
  </code></pre>
  
  <p>Codes contains array list of Strings contains data like {"123","345"}</p>
  
  <p>Now when the page is getting loaded,last option is selected 345.What I want is "Select code" should be selected by default.</p>
  
  <p>Please someone can guide me in right direction.  I tried to understand the documentation but have failed to arrive at some sense in this example.</p>