title: how to request.getParameter() in case of dynamic selection list
body: <p>i am working with jsp. i have a dynamic selection list. i want to request.getParameter(). how does it work for dynamic selection list? the code is below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="JavaScript" type="text/javascript"&gt;
      function optionsChange(){   
          var service = document.getElementById("service").value;
          if(service == 'GSM'){   
              document.getElementById("cdmaService").value= '';
              document.getElementById("cdmaService").style.display = 'none';
              document.getElementById("gsmService").style.display = 'block';
          }else if(service == 'CDMA'){
              document.getElementById("gsmService").value= '';
              document.getElementById("cdmaService").style.display = 'block';
              document.getElementById("gsmService").style.display = 'none';
          } 
      }
  &lt;/script&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;table&gt;
   &lt;tr&gt;
      &lt;td style="color:white"&gt; &lt;font size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SERVICE:&lt;/b&gt;&lt;/font&gt; &lt;/td&gt;
      &lt;td&gt;&lt;select id="service" name="service" onChange="javascript:optionsChange();"&gt;
              &lt;option value="GSM"&gt;GSM&lt;/option&gt;
              &lt;option value="CDMA"&gt;CDMA&lt;/option&gt;
          &lt;/select&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td style="color:white"&gt; &lt;font size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VAS :&lt;/b&gt;&lt;/font&gt; &lt;/td&gt;&lt;/tr&gt;
  &lt;tr id="gsmService"&gt;
      &lt;td&gt;&lt;select name="gsmService" &gt; 
          &lt;option value="COMBO OFFER"&gt;COMBO OFFER&lt;/option&gt;
          &lt;option value="CRICKET"&gt;CRICKET&lt;/option&gt;
          &lt;option value="ASTRO"&gt;ASTRO&lt;/option&gt;
          &lt;/select&gt;   
      &lt;/td&gt;
  &lt;/tr&gt;   
  &lt;tr id="cdmaService"&gt;
      &lt;td&gt;&lt;select name="cdmaService" &gt;
          &lt;option value="COMBO OFFER CDMA"&gt;COMBO OFFER CDMA&lt;/option&gt;
          &lt;option value="WIN THE DREAM"&gt;WIN THE DREAM&lt;/option&gt;
          &lt;option value="VOICE CHAT"&gt;VOICE CHAT&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>since both the lists have different names "gsmservice" and "cdmaservice". but they are dynamic so only one of them appears at a time depending on the selection in the 1st selection list(GSM/CDMA). how can i use request.getParameter() to see what value has been selected. because if i use request.getParameter(gsm service), it returns only gsm services. if i use request.getParameter(cdmaservice ), it return only cdma services. 
  how can it be done. any sugestions?</p>