title: JSP request.getParameter("..") always returning null for select tag
body: <p>I have the following html code that is basically a drop down list. Select has the attribute name <code>report</code>, and the option tags values differ based on a for statement that I have put. </p>
  
  <pre><code>&lt;form method="post" name="reportlist"&gt;
     &lt;select name="report" style=" width: 40%; float: left; margin-left: 10px"&gt;
          &lt;%
             for (...)
             {
           %&gt;
                 &lt;option value="&lt;%out.print(...);%&gt;"&gt;&lt;%out.print(...);%&gt;&lt;/option&gt; 
           &lt;%              
             }
            %&gt;
  
  &lt;input type="button" name="Go" value="Go" onClick="window.location='anotherpagename.jsp?variable=&lt;%out.print(request.getParameter("report"));%&gt;'"&gt;
  
     &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><code>request.getParameter("report")</code> is ALWAYS returning null, although I want the value of the option tag selected to be returned. What am I doing wrong?</p>
  
  <p>Thanks.</p>