title: Passing Array from Jsp to action class
body: <p>I need to pass my array of dynamically created objects from jsp to java action class , Meanwhile i am tring following code to set array objects as a request parameter for action form . But while fetching in action class it produce null result ,as array object are not passed on to action form. Kindly provide me a right way to pass array list to action class. Thanks in advance ////</p>
  
  <pre><code>&lt;script&gt;
  var i;
  var arraya = new Array();
  var arrayb = new Array();
  var arrayc = new Array();
  var idCount = 1;
  function arr()
  {
  for (var j=0;j&lt;idCount;j++)
  {
  arraya[j]=  document.getElementsByName("a"+j)[0].value;
  arrayb[j]=  document.getElementsByName("b"+j)[0].value;
  arrayc[j]=  document.getElementsByName("c"+j)[0].value;
  }
  var one=arraya.valueOf();
  var two=arrayb.valueOf();
  var three=arrayc.valueOf();
  } 
  &lt;/script&gt;
      &lt;input type="text" name="a0"&gt;
  &lt;input type="text" name="b0"&gt;
  &lt;input type="text" name="c0"&gt;
      &lt;input type="button" onclick="addDiv();" value="Add"/&gt;
  &lt;input type="hidden" name="one" value="&lt;%= request.getParameter("one") %&gt;" /&gt;
  &lt;input type="hidden" name="two" value="&lt;%= request.getParameter("two") %&gt;" /&gt;
  &lt;input type="hidden" name="three" value="&lt;%= request.getParameter("three") %&gt;" /&gt;
  </code></pre>