S2 tags do not provide a "for" tag, but an "iterator" tag, so I don't think you can do it with struts tags (unless you pass something like "%{1,2,3}" in the "value" attribute to the iterator, which defeats the purpose of the "for" tag).
As Laurie mentioned, you would have to use JSTL. musachy On 8/31/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > fergunet wrote: > > Hi all! I need to paginate some things and it would be useful to have the > > number of the pages like that: > > > > [first/previous] 1,2,3,_4_, 5, 6 [next/last] > > > > The _4_ is the actual_page. > > > > Yeah, is like the display:table of displaytag but made by myself. I've the > > stuff between the [] made, and I only need the numbers. How can I print > > those numbers with an iterator? (I've the #last_page, #actual_page... > > variables created) > > > > I could do it with <% for %> but my bosses don't want. They've forbidden the > > use of java code in our jsps ; ) > > Use the JSTL equivalent, c:forEach, maybe: > > http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/forEach.html > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]