title: Sending multiple parameter values from a JSP to a servlet
body: <p>The answer to my question is partially here but, not working for me
  <a href="https://stackoverflow.com/questions/6004346/sending-multiple-parameters-to-servlets-from-either-jsp-or-html">Sending multiple parameters to servlets from either JSP or HTML</a></p>
  
  <p>My JSP is the following</p>
  
  <pre><code>&lt;table cellpadding = "10" border = "1"&gt;
  &lt;tr valign = "bottom"&gt;
  &lt;th align = "left" &gt; Catalog No &lt;/th&gt;
  &lt;th align = "left" &gt; Chemical Name &lt;/th&gt;
  &lt;th align = "left" &gt; Unit &lt;/th&gt;
  &lt;th align = "left" &gt; Price &lt;/th&gt;
  &lt;th align = "left" &gt; Vendor &lt;/th&gt;
  &lt;th align = "left" &gt; Category &lt;/th&gt;
  &lt;th align = "left" &gt; Account No&lt;/th&gt;
  &lt;/tr&gt;
  
  &lt;%
  try
  {
  ArrayList&lt;CartProduct&gt; cp3 = (ArrayList&lt;CartProduct&gt;) session.getAttribute("cp");
  for(CartProduct pp: cp3)
  {
  %&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;%=pp.getCatNo()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%=pp.getChemName()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%=pp.getChemUnit()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%=pp.getPrice()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%=pp.getVendor()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;%=pp.getCategory()%&gt;&lt;/td&gt;
  &lt;td&gt;&lt;select name = "accno"&gt;&lt;option value="--Select--"&gt;--Select--&lt;/option&gt;
  &lt;%ArrayList&lt;String&gt; str=pp.getAccList();
  for(String s:str)
  {
  %&gt; &lt;option value="&lt;%=s%&gt;"&gt;&lt;%=s%&gt;&lt;/option&gt;
  &lt;%  
   }
  %&gt;
  &lt;/select&gt;&lt;/td&gt;&lt;td&gt;
  &lt;a href="DisplayCartServlet?catNo=&lt;%=pp.getCatNo()%&gt;&amp;;accountNo=accno"&gt;Add To Cart
  &lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;%
  }
  }
  finally{
  }
  %&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>How do I send the value of the list box to the servlet? Currently only catNo is being passed, but accountNo is null at the servlet.</p>