struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Karlmeier <vol...@magiccode.eu>
Subject Re: s:iterator ¿begin -> end?
Date Wed, 04 Nov 2009 21:35:36 GMT
With 2.1.8, you can use

<s:iterator begin="startValue" end="endValue" step="1">
...
</s:iterator>

But it still has a bug: see http://issues.apache.org/struts/browse/WW-3314

Regards

   Volker

Am 04.02.2009 16:04, schrieb Ignacio de Córdoba:
> Hi there,
> I've checked struts2 docs and this forum and have found no inside syntax for
> s:iterator tag to do:
> <c:forEach var='' value='${}' being='1' end='4'/>
>
> Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid
> counting and using indexed property to access an iterator. The last example
> in docs doesnt seem to work if I replace "this" with the property/objet I
> want to iterate.
>
> I am sure struts2 team has thought of a way to do some partial iterator (I
> can also do the full iterator and do a s:if to show only 5 values using
> status.index, but doesn't seem a nice solution.
>
> Thanks,
> Ignacio
>    


-- 
-------------------------------
words a just some place to hide
a wall that we can run behind..
-------------------------------
Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mlheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  Volker@magiccode.eu



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


Mime
View raw message