The ActionServlet doesn't know about Tiles. Tiles registers the
appropriate DTD in another location, specifically:
http://struts.apache.org/struts-tiles/xref/org/apache/struts/tiles/xmlDefinition/XmlParser.html#65
(Thanks, Wendy for getting the new Maven site up! I've been wanting
to link straight to line numbers in the source code for a long time
now!)
Joe
At 11:52 AM +0200 10/26/05, Chris Searle wrote:
I see that org.apache.struts.action.ActionServlet has an array of DTD
public identifier to path in jar file that looks like:
protected String[] registrations = {
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN",
"/org/apache/struts/resources/struts-config_1_0.dtd",
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN",
"/org/apache/struts/resources/struts-config_1_1.dtd",
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN",
"/org/apache/struts/resources/struts-config_1_2.dtd",
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN",
"/org/apache/struts/resources/web-app_2_2.dtd",
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN",
"/org/apache/struts/resources/web-app_2_3.dtd"
};
The jar file contains
org/apache/struts/resources/struts-config_1_0.dtd
org/apache/struts/resources/struts-config_1_1.dtd
org/apache/struts/resources/struts-config_1_2.dtd
org/apache/struts/resources/tiles-config_1_1.dtd
org/apache/struts/resources/web-app_2_2.dtd
org/apache/struts/resources/web-app_2_3.dtd
In other words - the tiles-config DTD is not referenced. This means
that for a project using tiles installed on a box that has no access
to the web - the resolution of the tiles DTD fails.
Is this by design? Or should the DTD be added?
If by design - how best to get the tiles DTD to resolve on boxes that
have no net access? At present I appear to be creating a descendent of
ActionServlet where the only difference is that in the init method
adds the tiles DTD - is there a better way?
--
Chris Searle
[EMAIL PROTECTED]
---------------------------------------------------------------------
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]