struts-user mailing list archives

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

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:url>
        <s:a href="%{url}"><s:property/></s:a>
</s:iterator>

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

--
Thx, Milan

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