title: Accessing array of ArrayList using Struts 2 iterator tag
body: <p>I having a doubt regarding accessing an array of arraylist in jsp using iterator tag. </p>
  
  <p>In my action class i used the following codes.., </p>
  
  <pre><code>ArrayList[] arr= new ArrayList[10]; 
  
  for(int i = 0; i &lt; 10; i++) { 
      arr[i] = new ArrayList&lt;bean&gt;();
  } 
  
  while (some conditions) { 
      arr[i].add(new bean(some values)); 
      i++; 
  }
  </code></pre>
  
  <p>My question is.. how can i access the arr[0],arr[1]...arr[n] arraylists in iterator..?</p>
  
  <p>The following code is working perfectly.., but please improve it to achieve my result..!</p>
  
  <pre><code>&lt;s:iterator value="display.arr[0]"&gt;
    ...
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>Helps will be appreciated..!</p>