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 : [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]