If you really want add internal entity declarations in you jspx, maybe you should enter a feature request at http://issues.apache.org/bugzilla/.
And you can change the "org.apache.jasper.compiler.JspDocumentParser" source, modify the startDTD(...) method to fit your need. and if you don't want to change the Jasper source code, you can implements SAXParserFactory, and set the "javax.xml.parsers.SAXParserFactory" system property to your owner implemention, and in its newSAXParser() method, return your owner SAXParser, and in SAXParser.getXMLReader() method, return your owner XMLReader and override the setErrorHandler(...) method catch the JspDocumentParser.ENABLE_DTD_VALIDATION_EXCEPTION exception. for more detail, I think you can see JspDocumentParser.getSAXParser(...) method. >> Thanks for the info. >> >> Do you know though what would be the proper approach to deal with that >> problem. How can I make it so tha the JSP compiler is satisfied with the >> JSP and the jsp:root declaration and my additional entity declarations? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
