title: how to retrive select tag value in jsp?
body: <p>hello i am devloping new jsp web site and i want to retrieve value from drop downlist my code is given below.</p>
  
  <pre><code>                   &lt;tr&gt;&lt;td&gt;Room Name&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="roomname"&gt;&lt;/td&gt;&lt;/tr&gt;
  
                   &lt;tr&gt;&lt;td&gt;Room Type&lt;/td&gt;&lt;td&gt;&lt;select id="roomtypeid" name="roomtypeid"&gt;
                      &lt;option  value="2L"&gt;Conference(1-25 user) &lt;/option&gt;
                      &lt;option  value="1L"&gt;restricted(1-50 user) &lt;/option&gt;
                      &lt;option  value="0L"&gt;interview (1-1 meeting with recording) &lt;/option&gt;
                  &lt;/select&gt; 
  </code></pre>
  
  <p>in another page i am trying to get value of textbox like below.</p>
  
  <pre><code>             java.lang.String name =request.getParameter("roomname");
  </code></pre>
  
  <p>this run perfectly but when i try to get value from dropdown. i get null value.i try following code.  </p>
  
  <pre><code> out.println("your selection is..." + request.getParameter("roomtyperoomtypeid"));
  </code></pre>
  
  <p>kindly help me how to retrive value from dropdown. </p>