2014-06-03 19:17 GMT+02:00 Matt Williams <mattwms1998...@yahoo.com.invalid>:
>
> I am using struts 2.1.8.  I am extending the 
> "org.apache.struts2.components.Select" tag and writing my own "select.ftl" 
> (freemarker template).
>
> I need to iterate over the parameter "parameters.list" twice.
>
> Example:
> <@s.iterator value="parameters.list">
>    <div>loop1</div>
> </@s.iterator>
> <@s.iterator value="parameters.list">
>     <div>loop2</div>
> </@s.iterator>
>
> However, the second iterator doesn't loop.  I think the "parameters.list" is 
> an Iterator object so it is already at the end (created by 
> org.apache.struts2.util.MakeIterator.convert(Object)).
>
> Is there a way?

Use <#assign> and create a copy?


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to