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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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 " "> ]> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"> <div> <p> </p> <jsp:directive.include file="test_included.jsp"/> </div> </jsp:root> File test_included.jsp : <p> </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> </p></div> ----------------^ I have the same error with a jsp:include markup. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>