title: Why my form parameters not getting in JSP
body: <p>This is my HTML form :</p>
  
  <pre><code> &lt;form action="supplierportal_home.jsp"&gt;
  
  
     &lt;select id="contract" name="contract"&gt; 
       &lt;option    selected="selected"&gt;Please Select&lt;/option&gt;
       &lt;option    value="open" &gt;Open&lt;/option&gt;
       &lt;option    value="limited" &gt;Limited&lt;/option&gt;  
     &lt;/select&gt;
  
     &lt;input type="text" name="cpv_code" placeholder="&lt;%= cpvOrTenderNo %&gt;"&gt;
  
     &lt;button type="submit"&gt;FIND  &lt;%= contractOrTender %&gt;&lt;/button&gt;
  
    &lt;/form&gt;
  </code></pre>
  
  <p>And i am getting in JSP</p>
  
  <pre><code>String  contract=request.getParameter("contract");
      System.out.println("%%%"+contract);
  
      String  cpv_code=request.getParameter("cpv_code");
      System.out.println("%%%"+cpv_code);
  </code></pre>
  
  <p>Here is the problem.Seems very nasty.</p>
  
  <p>When I enter both the values then only <code>parameters</code> getting in <code>jsp</code>  If I select only the contract from options then <code>null</code> is coming  if i give cpv-code then  the parameter is coming ...can any one please help to get out this ...</p>
  
  <p>Why my select option values are depending on the other form element <code>cpv-code</code> value,please show some cause for this.</p>
  
  <p>Thanks. </p>