title: pass parameter from the display tag table column as hidden always getting the value of first record
body: <p>I want to pass the Id of a record from the display tag table.
  So, I can pass the value of Id to next process ,which will be pass from javascript.</p>
  
  <p><strong>Now when I print out the varSearchId value, I always get the Id of the first record of the display tag table.</strong></p>
  
  <p>I just want to <strong><em>pass Id parameter value as hidden</em></strong> from the display according to requirement.</p>
  
  <pre><code>&lt;display:table class="displayTable" id="ItemList"
      name="${sessionScope.searchList}" pagesize="15"
      defaultsort="2" defaultorder="ascending" sort="list"&gt;
      &lt;display:column class="colSearchIngName" property=Name"
          title="Name" sortable="true" headerClass="sortable"/&gt;
      &lt;display:column class="colSearchIngPName" property="Class Name"
          title="Class Name" sortable="true" headerClass="sortable"/&gt;
      &lt;display:column title="" media="html"&gt;
          &lt;a  href="javascript:showWindow();"&gt;Add&lt;/a&gt;
          &lt;input type="hidden" id="searchId" value="${ItemList.Id}" name="searchId"/&gt;
      &lt;/display:column&gt;   
  &lt;/display:table&gt;
  
  
  function showWindow()
  {
      var varSearchId= document.getElementById("searchId").value;
      alert(varSearchId);
      //call another process passing the varSearchId value
  }
  </code></pre>