struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <>
Subject [Struts 2] How to iterate to simple value ?
Date Fri, 30 May 2008 13:58:24 GMT

I have one int (myInt) in my action class, and I want to iterate in my jsp from 0 to that
int (myInt), how can I do this ?

I tried like this:

<s:iterator value="myInt" status="iterstatus">
        <s:url id="url" action="list.action">
            <s:param name="myInt"><s:property/></s:param>
        <s:a href="%{url}"><s:property/></s:a>

But it only writes its value, it doesn't iterate at all.

Thx, Milan

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message