Other solution:

<...>
Cat <![CDATA[&amp;]]> Dog
</...>

Especially handy when using large portions of "Normal" text

-----Original Message-----
From: Sam Hough [mailto:[EMAIL PROTECTED] 
Sent: zaterdag 6 september 2003 19:40
To: Tomcat Users List

Can still produce valid XHTML by doing

Cat &amp;amp; Dog

But double escaping is not very friendly. I like the fact that JSP
lets you generate any format HTML, XHTML, plain text and being
able to write templates in XML but this is a bit ugly.

Just want to check that it is meant to be this way before I learn 
how it all works. Seems like they are sticking to "JSP generates
anything" since the JSP 2.0 syntax ${some.thing} doesnt escape
XML.

I think Ive spent too much time with XSL ;)


----- Original Message ----- 
From: "Eugene Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 06, 2003 6:23 PM
Subject: Re: JSP Document


> On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote:
> : 
> : Tomcat 4.1.27 on Win32 given
> : 
> : <?xml version="1.0"?>
> : <jsp:root xmlns=http://java.sun.com/JSP/Page version="1.2">
> :     <h1>Cat &amp; Dog</h1>    
> : </jsp:root>
> : 
> : Generates
> : 
> : <h1>Cat & Dog</h1>
> : 
> : Can anybody confirm that this is correct behaviour?
> 
> Why did the "&amp;" entity get changed to a plain "&" character?  That's
> not kosher with HTML-4.01 specs.
> 
> 
> -- 
> Eugene Lee
> http://www.coxar.pwp.blueyonder.co.uk/
> 
> ---------------------------------------------------------------------
> 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]





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

Reply via email to