struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Problem developing a tag using Struts 2 Arch for Tags
Date Wed, 05 Dec 2007 19:52:10 GMT
--- victor sosa <victornsosa@gmail.com> wrote:
> Well, It doesn't iterate (end method), what means "When there aren't any
> objects left to iterate over it does some cleanup and
> goes away." ???????

See this code in end()?

> if (iterator!=null && iterator.hasNext()) {
>     Object currentValue = iterator.next();
>     stack.push(currentValue);

That's what puts the next object on the stack.

I'm still not sure why you're building JSON this way, though.

d.


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


Mime
View raw message