title: Displaying list of array in drop down in jsp
body: <p>I have array populated with elements and I want to display elements of that array in drop down list. </p>
  
  <p>Here is relevant piece of code. </p>
  
  <pre><code> Party[] Parties = party.getAllParties;
  </code></pre>
  
  <p>In my jsp page, i have </p>
  
  <pre><code> &lt;td nowrap&gt;
      &lt;select label="Party List" array="Parties" name="Party List"&gt;
          &lt;option value=&lt;%= (Parties) %&gt;&gt;&lt;/option&gt;
      &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>Now when i go and check view source of jsp page, i have </p>
  
  <pre><code>&lt;td nowrap&gt;
    &lt;select label="Party List" array="Parties" name="Party List"&gt;
       &lt;option value=[Lcom.areil.pdo.party.Party;@1404de3&gt;&lt;/option&gt;
    &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I know, way option value is set is not correct and am not sure what is right way of doing it. </p>