Thanks Craig.

I do have places where relative references do work, just not in WEB-INF/web.xml with 
struts.jar 1.1.  It throws an exception in ActionServlet.initServlet when SAX 
exception when parsing.

Here's what I have:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE webapp PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          "http://java.sun.com/struts/dtds/web-app_2_3.dtd"; [
  <!ENTITY INFO_VALUES SYSTEM "conf/info.xml">
  %INFO_VALUES;
]>

Thoughts?

Thanks again,

Mike Gleeson
travelocity.com


-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:02 AM
To: Struts Users Mailing List
Subject: Re: base URI in WEB-INF/web.xml


Michael Gleeson wrote:

>I know this question has been asked a few times and I havn't seen a solution that has 
>been made public.  if anyone can help here I think it would be appreciated, thank you.
> 
>When moving to the latest struts.jar release, there is a Digester parsing exception 
>that is introduced when the base URI is not defined.  This was not a problem before 
>the latest release, I'm hoping to continue to use relative file paths due to varied 
>development environments and excessive entity includes.  Suggestions?
> 
>was:
> 
><!DOCTYPE web-app SYSTEM "conf/common/web-app_2_3.dtd" ...>
> 
>now requires 
> 
><!DOCTYPE web-app SYSTEM "file://...full_path.../conf/common/web-app_2_3.dtd" ...>
> 
>or 
> 
><!DOCTYPE web-app SYSTEM "http://web-app_2_3.dtd"; ...>
> 
>Thanks for your time,
> 
>Mike Gleeson
>Travelocity.com
>
>  
>
You should be using the standard DOCTYPE for the deployment descriptor DTD:

  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>

and the corresponding standard DOCTYPE for struts-config.xml files:

  <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD 
Struts Configuration 1.2//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>

The parsing code in Struts (and Tomcat, if you're using that) recognizes 
the public identifiers and loads its own internal copies of the DTDs, so 
it works without accessing the Internet.  And, I've got cases where 
relative references in web.xml and struts-config.xml files work fine 
when doing this.

Craig



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to