title: How to set Id and name with auto complete
body: <p>In Action Class</p>
  
  <pre><code>public class Supplier extends ActionSupport{
  
          private ArrayList supplierList;
         //contains list of supplisers with attribute(id,name,address,mailid)
        //getter and setter of supplierList
      }
  </code></pre>
  
  <p>this is my form(In Jsp)</p>
  
  <pre><code>&lt;form action="test" method="post"&gt;
     &lt;input type="text" name="supplierName" id="supplierName"&gt;
      &lt;input type="hidden" name="supplierId" id="supplierId"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to show autocomplete for supplierList's name and based on selected name i want to set its id and name in text and hidden box and on form submission i want to send  id of the element</p>