You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sri Sankaran <Sr...@sas.com> on 2003/02/26 21:17:17 UTC

[OT] DTD URL in web.xml

Does the servlet container actually access the location specified for the DTD in the DOCTYPE statement of the web.xml?

Couple of reasons for this question:
* JRun 3.1 is having heartache with my app that I just ported 
  to Struts 1.1.  It throws a ServletException with the message
  External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd".
* This seems un-necessary and circuitous.  One would think the 
  container would maintain a copy of the DTD

The odd thing is that it works for the Struts 1.0 web.xml.

Sri


Re: [OT] DTD URL in web.xml

Posted by Geeta Ramani <ge...@cmpco.com>.
You know I *vaguely* remember an error like this and I *think* we resolved it by changing 2_3.dtd to 2_2.dtd or some such
thing.. So maybe you may want to check that..?  Long shot, i agree..;)
Geeta

Sri Sankaran wrote:

> Does the servlet container actually access the location specified for the DTD in the DOCTYPE statement of the web.xml?
>
> Couple of reasons for this question:
> * JRun 3.1 is having heartache with my app that I just ported
>   to Struts 1.1.  It throws a ServletException with the message
>   External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd".
> * This seems un-necessary and circuitous.  One would think the
>   container would maintain a copy of the DTD
>
> The odd thing is that it works for the Struts 1.0 web.xml.
>
> Sri


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [OT] DTD URL in web.xml

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 26 Feb 2003, Sri Sankaran wrote:

> Date: Wed, 26 Feb 2003 15:17:17 -0500
> From: Sri Sankaran <Sr...@sas.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts-User <st...@jakarta.apache.org>
> Subject: [OT] DTD URL in web.xml
>
> Does the servlet container actually access the location specified for
> the DTD in the DOCTYPE statement of the web.xml?
>

It depends on the container -- Tomcat has a built-in copy of the DTDs and
accesses those if the public ID that you specify matches.  For other
containers, you'd have to ask their developers.

> Couple of reasons for this question:
> * JRun 3.1 is having heartache with my app that I just ported
>   to Struts 1.1.  It throws a ServletException with the message
>   External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd".
> * This seems un-necessary and circuitous.  One would think the
>   container would maintain a copy of the DTD
>

Yep :-).

> The odd thing is that it works for the Struts 1.0 web.xml.
>
> Sri
>
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org