title: apache tomcat error in creating enhanved for loop
body: <p>i am trying to make combo boxes with list of values but an error occurs in the enhanced loop ... my code is </p>
  
  <pre><code>&lt;body&gt;
  &lt;% List&lt;String&gt; sexList = (List&lt;String&gt;)request.getAttribute("sexList"); %&gt;
  &lt;% List&lt;String&gt; maritalStatus = (List&lt;String&gt;)request.getAttribute("maritalStatus"); %&gt;
   &lt;form method="GET" action='FilterMembers'&gt;
  &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;Genre:&lt;/td&gt;
              &lt;td&gt;&lt;select name="sex"&gt;
                  &lt;%for(String item : sexList) { %&gt;
                      &lt;option value="&lt;%=item%&gt;"&gt;&lt;%=item %&gt;&lt;/option&gt;&lt;%}%&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Marital Status:&lt;/td&gt;
              &lt;td&gt;&lt;select name="mStatus"&gt;
                  &lt;%for(String item : maritalStatus) { %&gt;
                      &lt;option value="&lt;%=item%&gt;"&gt;&lt;%=item %&gt;&lt;/option&gt;&lt;%}%&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
        &lt;table&gt;
       &lt;/body&gt;
       &lt;/form&gt;
  </code></pre>