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]



Reply via email to