You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rodrigo Zerlotti <ro...@dblive.com> on 2001/08/21 07:10:54 UTC

iterate - help

Sorry if it is too basic, but i am new on struts...

I have an interate:

<logic:iterate id="mcity" name="cityReview" property="multiCity" offset="0"
length="6">
   do something
</logic:iterate>

multiCity is a vector...

Suppose I want to display on a table only 2 at the time, I make offset="0"
and lenght="2".

How do I repeat the loop without repeating the logic iterate for [2,2} and
[4,2], or in other words, how can I set the offset/length on the fly?

It is the same question for all struts tags, I can never use <%'s to modify
values of the tags... - of course I may be missing something....


---------
Regards,

Rod~