title: How to pass this <input type="text" name="name[]" value="" /> from html to jsp
body: <p>In my project i accept the number of rows manually at the client end so I would like to know how to pass this <code>name[]</code> in the form to jsp page so I can receive all the values in the jsp page. Here the <code>modalDialog</code> which pops up new box where again we are allowed to enter the sub details of the existing main row. This means we have a main rows (Number of rows can be manually based on the client's needs) and the sub rows for each main row (even this is manually based on the client's needs). each input type name is identified individually.</p>
  
  <pre><code>&lt;tr class="prototype"&gt;
  &lt;td&gt;&lt;input type="text" name="id[]" value="0" class="id" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="name[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="col4[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="col3[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;button class="remove"&gt;Remove&lt;/button&gt;&lt;/td&gt;
  &lt;td&gt;&lt;a href="#openModal"&gt;Open Modal&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;div id="openModal" class="modalDialog"&gt;
  &lt;div&gt;
  &lt;a href="#close" title="Close" class="close"&gt;X&lt;/a&gt;
  &lt;h2&gt;Modal Box&lt;/h2&gt;
  &lt;table class="dynatable"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th&gt;Id&lt;/th&gt;
  &lt;th&gt;Description&lt;/th&gt;
  &lt;th&gt;Debit &lt;/th&gt;
  &lt;th&gt;Credit&lt;/th&gt;
  &lt;th&gt;&lt;button class="add"&gt;Add&lt;/button&gt;&lt;/th&gt;            
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;tr class="prototype"&gt;
  &lt;td&gt;&lt;input type="text" name="id[]" value="0" class="id" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="name[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="col4[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="col3[]" value="" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;button class="remove"&gt;Remove&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;input type="submit" name="sendMessage" class="buttonM bLightBlue" value="Submit"/&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>