You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vo Van Thuong <vo...@hn.vnn.vn> on 2007/09/17 06:55:03 UTC

iterator tag with only an int as input value

Hi,
i'm wondering if there is anyway to use <s:iterator> like this:
    <s:iterator value="{1..pagesNum}" >
        <s:property value="top"/>
    </s:iterator>

should be the same as below, if pagesNum=5:
    <s:iterator value="{1,2,3,4,5}" >
        <s:property value="top"/>
    </s:iterator>

Thanks,

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