This is the literal public ID which must be used:
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
Yours do not include the version number. If the ID above is used, the Digester instance used by Tiles will retrieve the DTD from the classpath location "/org/apache/struts/resources/tiles-config_1_1.dtd" (where it should be, in JAR distributions, with no further effort on your part.)
In this case, the URL specified for the DTD should be completely ignored.
Joe
At 10:52 AM -0500 1/21/05, Lukas Bradley wrote:
What I find particularly annoying about this problem is references to local Struts Configuration files work correctly, which in turn load the Tiles Definitions.
/WEB-INF/struts-config.xml /WEB-INF/tiles-defs.xml /WEB-INF/dtd/(all here)
An example of my Struts Config definition, that works correctly:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "file:///dtd/struts-config_1_2.dtd">
Which loads Tiles definitions:
<plug-in className="org.apache.struts.tiles.TilesPlugin"> <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
Which will not parse correctly with any of the following:
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "file:///dtd/tiles-config_1_1.dtd">
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "file:///WEB-INF/dtd/tiles-config_1_1.dtd">
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "file:///./dtd/tiles-config_1_1.dtd">
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "file:///./WEB-INF/dtd/tiles-config_1_1.dtd">
As Tim stated in his post, absolute path references work correctly. However, this becomes tedious when migrating lots of configuration files between local filesystems and production ones.
Any help appreciated.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
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]