You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by amasou <am...@hotmail.com> on 2011/07/05 12:13:30 UTC

iterator struts

I have a collection that contains multiple records.
such collection is called nombre contains {a, b, c d e f g h, i, k}


a=nombre.size();
b=a%5;
if(b>0) c=(a/5)+1;
else c=a/5;

	

 
&lt;c:forEach begin=&quot;0&quot; end=&quot; &lt;s:property
value=&quot;c&quot; /&gt; ">
<div class="general">
 
            <div class="second">
<s:iterator value="nomber " status="a" >
<s:property  />
</s:iterator >
 
               </div>
Ggggggggggggggggggggggggggg1111111111
</div></c:forEach>

I want to display the contents of nomber 5 by 5
The result I want


a
b
c
d
e
Ggggggggggggggggggggggggggg1111111111

f
g
h
i
k
Ggggggggggggggggggggggggggg1111111111

thank you

--
View this message in context: http://struts.1045723.n5.nabble.com/iterator-struts-tp4552776p4552776.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org