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?
Well, the registrations are on a per-digester instance, so the Tiles digester probably doesn't have struts-config registered. If it did, you probably would have had a validation error, since a tiles config file isn't valid according to the struts-config DTD!
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]