cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject Re: Possible bug in XSP generator
Date Thu, 20 Nov 2003 08:54:49 GMT
Try this:

<xsp:logic>
  for (java.util.Iterator it = ajs.getMods().iterator(); it.hasNext(); ) {
</xsp:logic>
  <xsp:expr>it.next().toString()</xsp:expr><br/>
<xsp:logic>
  }
</xsp:logic>

Best Regards,

Antonio Gallardo

Carmona Perez, David dijo:
> Hi all,
>
> I have this snippet in an XSP file:
>
> <xsp:logic>
>       for (java.util.Iterator it = ajs.getMods().iterator(); it.hasNext();
> ) {
>       String mod = it.next().toString();
>             <xsp:expr>mod</xsp:expr><br/>
>       }
> </xsp:logic>
>
> and the following code is generated:
>
> for (java.util.Iterator it = ajs.getMods().iterator(); it.hasNext(); ) {
>                         String mod = it.next().toString();
> (mod)
> this.contentHandler.startElement("", "br", "br", xspAttr);
>     xspAttr.clear();
>             }
>
>
> I think that the right code would be:
>
> for (java.util.Iterator it = ajs.getMods().iterator(); it.hasNext(); ) {
>                         String mod = it.next().toString();
> this.characters(mod);                           <------------------------
> this.contentHandler.startElement("", "br", "br", xspAttr);
>     xspAttr.clear();
>             }
>
> Is this really a bug of the XSP generator?
> --------
> David
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message