title: Spring MVC: Display correct value in select drop-down list
body: <p>My JSP snippet is as follows:</p>
  
  <pre><code>&lt;form:select path="rules[${counter.index}].assignedTo.assignedToName"&gt;
      &lt;form:options items="${assignmentRulesForm.assignedToList}"
                    itemLabel="assignedToName"
                    itemValue="assignedToName"/&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>The assignedTo property refers to this object:</p>
  
  <pre><code>public class AssignmentDTO {
      private String assignedToName;
      // No other members
  </code></pre>
  
  <p>assignedToList then is a <code>List&lt;AssignmentDTO&gt;</code></p>
  
  <p>Really, what I want to happen is for the drop-down to contain all entries in the assignedToList, but to select the value associated with <code>rule[i].assignedto.assignedToName</code></p>
  
  <p>Presently, what I am seeing is that it does not perform the selection part, and the first item in the drop-down is displayed.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks</p>