title: Java populating <option> dropdown list
body: <p>I have the following code:</p>
  <pre><code>&lt;div&gt;
  &lt;%
      TaxonomicTypeFeed ttf = new TaxonomicTypeFeed();
      ArrayList&lt;String&gt; tmp = ttf.getTypes();
      System.out.println(&quot;Going to print&quot;);
          for (int i=0; i &lt; tmp.size(); i++)
      {
          System.out.println(tmp.get(i));
      }
  %&gt;
              
      &lt;form&gt;
          &lt;select&gt;
          &lt;%
              Iterator&lt;String&gt; i = tmp.iterator();
              while (i.hasNext())
              {
              String str = i.next(); %&gt;
              &lt;option value=&quot;&lt;%str.toString();%&gt;&quot;&gt;&lt;%str.toString();%&gt;
              &lt;/option&gt;
          &lt;%}%&gt;
      &lt;/select&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  <p>It creates a dropdown list fine, however there is no text.
  This is the first time I have ever used any of these options before, so I have no idea if I am even going about it in the right manner.</p>