velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Mutating a collection
Date Wed, 17 Nov 2010 21:15:07 GMT
All,

I'd like to mutate a collection during template evaluation --
essentially, I'd like to call Iterator.remove() during a loop. Is that
possible? Does Velocity expose an Iterator or anything like that to the
template?

Or, am I forced to iterate over one collection and add to another one?

For that matter, is there a convenient way of creating an empty
ArrayList or something similar?

Thanks,
-chris


Mime
View raw message