It's just a warning.  If you send an Iterator object to a foreach
loop, it will work exactly once in the template.  If you are only
using it once, then that's not a problem.

In best practice, you would always try to send an array or an object
that implements java.util.Collection to a foreach loop.

Barbara Baughman
X2157

On Tue, 29 Mar 2005, Chacko, Raj wrote:

> Hi All
> How to handle this sort of warning?
>
> Velocity   [warn] Warning! The iterative is an Iterator in the
> #foreach() loop at 0,0] in template /data.vm. Because it's not
> resetable, if used in more than once, this may lead to unexpected
> results.
>
>
> Thanks
> Raj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to