tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Ampersand problem in JSP document
Date Mon, 23 Aug 2004 19:35:16 GMT

Hi,
Does it happen if you have a proper JSP XML page, e.g.
<jsp:root 
     xmlns:jsp="http://java.sun.com/JSP/Page"
     version="1.2">
  <jsp:text><![CDATA[<html>
    <body>
      <center>
        <h1>Hello World</h1>
      </center>
    </body>
  </html>]]></jsp:text>
</jsp:root>

?

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: news [mailto:news@sea.gmane.org] On Behalf Of Andreas Schildbach
>Sent: Monday, August 23, 2004 3:31 PM
>To: tomcat-user@jakarta.apache.org
>Subject: Ampersand problem in JSP document
>
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
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