title: How to store values that dynamic column generated based on which on table and pass to querystring
body: <p>My title might not be clear enough, so let me explain my senario first.
  I have a dropdownlist which fetches table list from table.
  Now if I choose one of the tables, it will show all the columns by following code:</p>
  
  <pre><code>&lt;%          
  String columnsql = "SELECT COLUMN_NAME as ColumnName FROM information_schema.columns " 
  + "WHERE  table_name = '"+ TableName + "' ORDER  BY ordinal_position";
  PrintDebug.println("Table:" + TableName);
  ResultSet myRs = aDbManager.retrieveRec(columnsql);
  
  int count =0;
  //String[] arraycolumn;
  //boolean[] arraycheckbox;
  //String[] arraysearch;
  while (myRs2.next()) {
  
      columnname = myRs2.getString("ColumnName");
      //PrintDebug.println("Column"+count+": "  + columnname);        
  %&gt;
  &lt;label id="lblcolumnname&lt;%=count %&gt;" value=&lt;%=columnname%&gt;&gt; &lt;%=columnname%&gt;&lt;/label&gt; 
  &amp;nbsp;
  &amp;nbsp;
  &lt;input id="chkcheckbox&lt;%=count %&gt;" type="checkbox" value=&lt;%=columnname %&gt;&gt;
  &amp;nbsp;
  &amp;nbsp;
  &lt;input id="txtsearch&lt;%=count %&gt;" type="text"&gt;
  &lt;br&gt;
  &lt;%
      count++;
  }
  myRs2.close();
  %&gt;
  </code></pre>
  
  <p>So code above will generate every column in the table that I selected. I use javascript to refresh by onchanged.</p>
  
  <p>Question here:
  How should I store the columns, irrespective of whether the checkbox is checked or not, and the search textbox in querystring.</p>
  
  <p>sorry for my poor english, confusing to find out the logic i should use on this dynamic generate and store to passing to others page/servlet for processing the querystring for checkbox is checked or not to decide to show the column or not, search textbox is "" or got value to filtering.</p>
  
  <p>was thinking solution by array, is it possible when come to dynamic? because i have to retrieve it on the other side to process the query.
  thanks.</p>