tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16290] New: - Unresolved entities in included JSP file
Date Tue, 21 Jan 2003 10:01:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16290>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16290

Unresolved entities in included JSP file

           Summary: Unresolved entities in included JSP file
           Product: Tomcat 4
           Version: 4.1.18
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Ludovic.Maitre@fr.oleane.com


Hello,

I have a probleme with JSP pages written in XML. The entities defined in a DTD
for a JSP page (i.e index.jsp) doesn't apply to pages included from this jsp
(i.e menu.jsp).

Nothing in JSP specification 1.2 explain how to handle this case AFAIK, but in
xml, i think that the DTd must apply to all the node of the document, including
the nodes added during the construction of the page by inclusion.

Sample test case
----------------

File test_include.jsp :
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE toto [
    <!ENTITY nbsp  "&#160;">
]>
 
<jsp:root
    xmlns:jsp="http://java.sun.com/JSP/Page"
     version="1.2">
 <div>
     <p>&nbsp;</p>
     <jsp:directive.include file="test_included.jsp"/>
 </div>
 </jsp:root>
 
File test_included.jsp :
 <p>&nbsp;</p>
 
When i access to test_include.jsp :
 
XML Parsing Error: undefined entity
Location: http://localhost:8080/test_include.jsp
Line Number 1, Column 17:
<div><p> </p><p>&nbsp;</p></div>
----------------^

I have the same error with a jsp:include markup.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message