title: Dropdown box in Spring
body: <p>I have a select box something like the following in Spring.</p>
  
  <pre><code>&lt;form:select path="cmbZone" multiple="false" class="validate[required] text-input tooltip" title="Mandatory select field."&gt;
      &lt;form:option value=""&gt;Select&lt;/form:option&gt;
  
      &lt;c:forEach items="${zoneList}" var="row"&gt;
          &lt;form:option value="${row[0]}"&gt;${fn:escapeXml(row[1])}&lt;/form:option&gt;
      &lt;/c:forEach&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>This uses a JSTL <code>forEach</code> loop to iterate over a list of items. <code>zoneList</code> is a list containing an array of <code>Object</code>s like <code>List&lt;Object[]&gt;</code> retrieved from a database using HQL like the following. </p>
  
  <pre><code>List&lt;Object[]&gt;zoneList=sessionFactory.getCurrentSession().createQuery("select z.zoneId, z.zone from Zone z order by z.zoneId").list();
  </code></pre>
  
  <p>I want to achieve the same using <code>&lt;form:options&gt;</code>. How could I specify the <code>itemLabel</code> and the <code>itemValue</code> properties of <code>&lt;form:options&gt;</code>?</p>
  
  <pre><code>&lt;form:select path="cmbZone" multiple="false" class="validate[required] text-input tooltip" title="Mandatory select field."&gt;
      &lt;form:option value=""&gt;Select&lt;/form:option&gt;
      &lt;form:options items="${zoneList}"/&gt;
  &lt;/form:select&gt;
  </code></pre>
  
  <p>What would be <code>itemLabel</code> and <code>itemValue</code> in this?</p>
  
  <pre><code>&lt;form:options items="${zoneList}" itemLabel="" itemValue=""/&gt;
  </code></pre>
  
  <p>I'm using Spring 3.2.0. I was referring to <a href="http://www.mkyong.com/spring-mvc/spring-mvc-dropdown-box-example/" rel="nofollow">this</a> blog but couldn't find the way.</p>