Hello everyone,

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

<href>myurl?param1=value1&amp;param2=value2</href>

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

<href>myurl?param1=value1&param2=value2</href>

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.

Regards,

Andreas


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



Reply via email to