struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe David Manana" <fdman...@ieee.org>
Subject Re: Struts2 tags loops
Date Fri, 01 Feb 2008 08:21:19 GMT
Nop. Neither way works.

<s:iterate value="pageCount">
  <s:property />
</s:iterate>

This has a single iteration, and the value outputted is the value of
the variable (10 for example).

The <c:forEach> jstl tag, as well as all other jstl tags, is not
allowed in struts 2.0.11, afaik.



On Feb 1, 2008 12:24 AM, Dave Newton <newton.dave@yahoo.com> wrote:
> --- Filipe David Manana <fdmanana@ieee.org> wrote:
> > Is there any way to iterate over an integer range with the <s:iterate/>
> > tag? I have an integer property (pageCount) in my action and I want to
> > print all the integer values between 1 and this property in my JSP.
>
> Not that I'm aware of; easier to use <c:forEach.../> IMO.
>
> Dave
>
>



-- 
Filipe David Manana,
fdmanana@ieee.org

Obvious facts are like secrets to those not trained to see them.

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


Mime
View raw message