title: struts 2 for loop
body: <p>I want to loop a code some no of  times like this</p>
  
  <pre><code>&lt;s:iterator value="#session.count"&gt;
          &lt;TD WIDTH='10%' BGCOLOR='#000080'&gt;&amp;nbsp;&lt;/TD&gt;
      &lt;/s:iterator&gt;
  </code></pre>
  
  <p>based on value 'count', stored in the session, those many times I need to add  tags as above
  but it is not looping as expected.</p>
  
  <p>what I want to know is 
   is for arrays or collection objects. 
  but
  how to loop the code N no of time using Struts 2 tags in JSP.</p>