At 1:23 PM +0100 12/13/05, Danny Lee wrote:
Shalom there,

http://jakarta.apache.org is dead :(, have the same problem.


yes you can hold the stuff localy.
Just put it in your /lib/ folder... when jackarta's up, I'll do it too.

Struts, Tiles, and Validator all are distributed with the correct DTDs (as well as several historic versions) packaged in the JAR. If you have the correct DOCTYPE declaration in your XML file, the DTD will be read as a classpath resource rather than over the internet.

People generally don't understand that the PUBLIC identifier in the DOCTYPE is literally an identifier. It is an unstructured text string which must exactly match the value which is encoded in the validation Java code. (Well, it looks structured, but the process of identifying the DTD is based on a pure string match.)

I recently collected the correct DOCTYPE declarations for the various XML files which Struts (or common Struts libraries) wants to validate; if you use these values, there should be no attempt to retrieve the DTD over the internet:

Struts 1.3

<!DOCTYPE struts-config PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
       "http://struts.apache.org/dtds/struts-config_1_3.dtd";>
============================

Struts 1.2

<!DOCTYPE struts-config PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
       "http://struts.apache.org/dtds/struts-config_1_2.dtd";>
============================

Struts 1.1

<!DOCTYPE struts-config PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
       "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
============================

Struts 1.0

<!DOCTYPE struts-config PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
       "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
============================

Servlet 2.3

<!DOCTYPE web-app PUBLIC
        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd";>
============================

commons-validator 1.2

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.2.0//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd";>
============================

commons-validator 1.1.3

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd";>
============================

commons-validator 1.1

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>
============================

commons-validator 1.0.1

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0.1//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd";>
============================

commons-validator 1.0

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
============================

Tiles 1.1

<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
       "http://struts.apache.org/dtds/tiles-config_1_1.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]

Reply via email to