tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schildbach <>
Subject Ampersand problem in JSP document
Date Mon, 23 Aug 2004 19:31:14 GMT
Hello everyone,

I am using the following fragment in a JSP document (the XML variant of 
JSP pages):


The problem is, Tomcat sends this fragment to the browser as


which causes an XML parsing exception on the client.

Why is the &amp; character being unescaped? Since JSP documents are 
intended for outputting XML, why is the output violating the XML specs? 
I cross-checked with the &gt; and &lt; characters - same problem.

What can I do to prevent this?

I am using Tomcat 5.0.27.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message