tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan S√łgaard <>
Subject RE: How can I register a DTD in a war
Date Wed, 20 Feb 2002 10:13:04 GMT
Hi Benoit

Remember that the resources under /WEB-INF/ is not directly accessible
for the end user.
If you place your DTD in a directory TOMCAT_HOME/webapps/myApplication/ 
You will have directly access to it, from other applications, accessing
the DTD through tomcat.


I have a dtd placed in TOMCAT_HOME/webapps/myapp/my.dtd
the receiving XML have the following header:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE message SYSTEM "">

And my Servlet is able to validate the document according to this DTD.

So, in short, I don't think you need to register your dtd, just placed
it, in a directory outside the WEB-INF.
Then every application can access it, through the URL, not the fully
qualified path.

If this is not, what you questioned, please explain your problem, and I
will try to help


-----Original Message-----
From: Benoit Segaert []
Sent: 20. februar 2002 10:39
Subject: How can I register a DTD in a war

I want to validate a XML with a DTD in a War application.
I have my DTD available in the war file.

I use a XML file like the following:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE Application SYSTEM



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"

How can I explain to Tomcat the mapping between this header and the real

place of the DTD in the War of Jar?

I don't know if it is the good mailing list but I can see that Tomcat
this feature.


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message