Maybe you found a bug. Hopefully Struts cleans up its iterator when the tag finishes. Maybe you can look into the source code to find out for us.
Cheers, Paul On Tue, Jun 3, 2014 at 12:17 PM, Matt Williams < [email protected]> wrote: > > 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? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

