If you want to output content in an <xsp:logic> tag, you must use <xsp:content> :
<xsp:logic>
for (java.util.Iterator it = ajs.getMods().iterator(); it.hasNext(); ) {
String mod = it.next().toString();
<xsp:content><xsp:expr>mod</xsp:expr><br/></xsp:content>
}
</xsp:logic>PS : Please write your mails in plain text
-- Olivier Billard
On 20/11/2003 09:43, Carmona Perez, David wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
