title: Struts2 iterator display
body: <p>I am using Struts2 iterator tag to display value in JSP.</p>
  
  <p>having list called <code>DepotList</code></p>
  
  <p>iterating using following code </p>
  
  <pre><code>&lt;s:iterator value="depotList" var="product" status="incr"&gt;
    &lt;tr&gt;
       &lt;td&gt;&lt;s:property value="depotDescription" /&gt;&lt;/td&gt;
       &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>it display like below</p>
  
  <pre><code>Depot1  0
  Depot2  0
  Depot3  0
  15511   0
  </code></pre>
  
  <p>but I want to display below manner</p>
  
  <pre><code>Depot1 0      Depot2 0
  Depot3 0      15511  0
  </code></pre>
  
  <p>Any idea how to iterate loop to get out put like this?</p>