That's what I meant. You found a bug in my example ;)
> I don't think your construct would work in Cocoon 1.8.x. Here is what would
> work (notice the xsp:expr around o.getName()).
>
> <tag>
> <xsp:logic>
> try {
>
> <ns:list>
------------>
this is the maybe-bug
I am talking about.
In C2 "Collection list = ..." will
be in the output tree and no java.
> Collection list = ...
>
> for (Iterator iterator = list.iterator();
> iterator.hasNext();) {
> MyObj o = (MyObj) iterator.next();
>
> <ns:MyObj>
> <ns:name><xsp:expr>o.getName()</xsp:expr></ns:name>
> </ns:MyObj>
>
> }
> </ns:list>
>
> }
> catch(Exception e) {
> <xsp:content>Error:
> <xsp:expr>String.valueOf(e)</xsp:expr></xsp:content>
> }
> </xsp:logic>
> </tag>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]