I want to validate a XML with a DTD in a War application. I have my DTD available in the war file (or in a jar).
I use a XML file like the following: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE Application SYSTEM "file:///C:/java/jakarta-tomcat-4.0.1/webapps/myapplication/WEB-INF/Ldap Framework.dtd"> <Application> ... But I want to register my DTD in Tomcat for the using of the following XML header <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE Application PUBLIC "-//Uniway Belgium//DTD Application Configuration 1.0//EN" "http://www.uniway.be/application/dtds/application_1_0.dtd"> <Application> ... How can I explain to Servlet Engine (Tomcat) the mapping between this header and the real place of the DTD in the War or Jar? When I use Struts in my application, I have the struts-config file <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> If I look the Tomcat log I can see: register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:C:/java/jakarta-tomcat-4.0.1/webapps/strutsjndi/WEB-INF/ lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' The struts.jar contains the dtd and the the xml file refers to the following web file: "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd" I want to reproduce this configuration. How can I explain this mapping to the xml parser or servlet engine? Benoit -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>