struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: s:iterator ¿begin -> end?
Date Wed, 04 Nov 2009 21:55:54 GMT
<s:iterator begin="2" end="9" step="1" var="val">
      <s:property value="%{#val}"/> <br/>
 </s:iterator>

Prints:

2
3
4
5
6
7
8
9

it seems to work fine.

On Wed, Nov 4, 2009 at 1:35 PM, Volker Karlmeier <volker@magiccode.eu> wrote:
> 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
>
>

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


Mime
View raw message