Hi,
I think that problem has been fixed since Struts 1.0, but I'm not sure.
Do you have a new release from Struts?
The solution with "file://c:/..." is IMHO a problem if you want to
deploy your Application (e.g. in a war-File).
Who guarantees you, Tomcat or JRun or ... will be installed on Drive C?
Currently I have a similar problem: I have a XML-File (retrieved by
SOAP) and do parse it with Digester.
That is no problem. If I want to validate that Document, I do it by
writing the DTD-Reference into the XML-File
( <!DOCTYPE root SYSTEM "xy.dtd"> ) and by calling
digester.validate(true).
The Drawback is, that I must put that DTD in the tomcat/bin Directory,
otherwise it would **not** be found.
Then I tried to use the digester.register method. But it seems, I does
not work, as I want.
What I want is: To put the DTD file in some custom directory and use it
to validate the XML-File (that I get wrapped in in a SOAP Document).
Who knows, how to do that?
Cheers
Hartmut
Liang Li schrieb:
>
> Open the struts-config.xml, change the head
>
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
>
> To:
>
> <!DOCTYPE struts-config PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
> "file://c:/{where_your_DTD_is}/struts-config_1_0.dtd">
>
> I think that will work.
>
> -----Original Message-----
> From: James Howe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: Running Tomcat+Struts w/o internet connection
>
> We are trying to run Tomcat + Struts to run our web application without an
> external internet connection. We are running into a problem because our
> struts-config.xml has an external reference to the struts-config DTD. What
> is the proper way to modify struts-config.xml to reference a locally
> defined DTD and where would that file normally reside in a standard Tomcat
> installation?
>
> Thanks.