https://issues.apache.org/bugzilla/show_bug.cgi?id=45108

           Summary: JSPX source containing "&" renders "&" in output
                    page
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
               URL: http://feelitlive.com/events/2008/11/28/SW9/9SL/Carling+
                    Academy+Brixton/New+Found+Glory
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I had the JSPX source code in a .tag file:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="1.2" 
        xmlns:c="http://java.sun.com/jsp/jstl/core";
    xmlns="http://www.w3.org/1999/xhtml"; 
        >

        <c:set var="googleKey" value="MYKEY" />

        <script language="javascript" type="text/javascript" 
               
src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=${googleKey}";
             >
            <!-- comment to avoid the element being rendered as empty tag -->
        </script>

 </jsp:root>

Which outputs the value of "maps?file=api&v=2&key=" in the XHTML output, which
fails validation (See http://validator.w3.org/ ) since &v is neither
syntactically correct or a defined entity.

The following work around is required (and this will be uploaded shortly).

        <script language="javascript" type="text/javascript" 
               
src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=${googleKey}";
             >
            <!-- comment to avoid the element being rendered as empty tag -->
        </script>


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to