Joe Germuska wrote:
Everywhere Struts does a validating parse of an XML document, at least using Digester, it should have already registered a valid JAR-based copy of the DTD with Digester. This is definitely set up correctly in Tiles, but it only works if you have the correct PUBLIC Identifier in your DOCTYPE declaration.
Here is an example which should support this: <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
With the correct public ID, Struts will never try to retrieve the DTD from the internet. Anyplace we aren't doing this we should, so that would be something to file as a bug.
With further checking, turns out the DTD was defined like this:
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">(I assume the jakarta.apache.org URL is a redirect).
Could this be causing the trip to the internet?
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature
