On Tue, 22 Jan 2002, Tom Bednarz wrote:

> Date: Tue, 22 Jan 2002 08:48:40 +0100
> From: Tom Bednarz <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: web.xml Question
>
> Hi everybody,
>
> Usually the web.xml file of a web application starts with the following:
>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.3//EN"
>      "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> This URL referst to the dtd file on SUN's server. I think most XML parsers
> like SAX need to read the dtd file to be able to parse the XML file.
>
> Questions:
>
> What happens if I deploy an application on an Intranet which allows access
> to the internet only through a proxy server (with username / password
> authentication)? The dtd cannot be accessed and must be someware on the
> local disk.
>

It's actually inside the servlet.jar file.  Tomcat registers a local copy
of the DTDs it uses, so as long as you spell the public identifier
correctly the internal copy will be used.

I use this mode of operation all the time, to run Tomcat on a disconnected
laptop.  The only other reason it might not work is if you are using an
XML parser that does not properly implement the SAX EntityResolver APIs.

> I found that TOMCAT has a web.xml in its conf directory. Could anybody
> explain me, which XML files I need to change and where do I need to put the
> downloaded web-app_2_3.dtd file?  Is the web.xml in the conf directory like
> a parent to all web.xml files found under webapps\<application>\WEB-INF?
> (Something like the defaults for all web apps)?
>
> Could anybody help me out of this XML jungle?
>
> Many thanks!
>
> Thomas
>

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to