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]

Reply via email to