title: How to get multiple selected values from select box in JSP?
body: <p>I have a html form which have a select list box from which you can select multiple values because its multiple property is set to <strong>multiple</strong>. Consider form method is get method. The html code for form is as follows.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" name="form1" method="get" action="display.jsp"&gt;
    &lt;table width="300" border="1"&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;label&gt;Multiple Selection &lt;/label&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;&lt;select name="select2" size="3" multiple="multiple" tabindex="1"&gt;
          &lt;option value="11"&gt;eleven&lt;/option&gt;
          &lt;option value="12"&gt;twelve&lt;/option&gt;
          &lt;option value="13"&gt;thirette&lt;/option&gt;
          &lt;option value="14"&gt;fourteen&lt;/option&gt;
          &lt;option value="15"&gt;fifteen&lt;/option&gt;
          &lt;option value="16"&gt;sixteen&lt;/option&gt;
          &lt;option value="17"&gt;seventeen&lt;/option&gt;
          &lt;option value="18"&gt;eighteen&lt;/option&gt;
          &lt;option value="19"&gt;nineteen&lt;/option&gt;
          &lt;option value="20"&gt;twenty&lt;/option&gt;
        &lt;/select&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;&lt;input type="submit" name="Submit" value="Submit" tabindex="2" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to display the selected values in select list box on display.jsp page. So how the selected values are accessed on display.jsp page.</p>