You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/21 11:01:35 UTC

DO NOT REPLY [Bug 16290] New: - Unresolved entities in included JSP file

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>