tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sjoerd van Leent" <svanle...@wanadoo.nl>
Subject RE: JSP Document
Date Sat, 06 Sep 2003 19:46:50 GMT
Other solution:

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

Especially handy when using large portions of "Normal" text

-----Original Message-----
From: Sam Hough [mailto:sam@redspr.com] 
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" <list-tomcat-user@fsck.net>
To: <tomcat-user@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

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





Mime
View raw message