Struts: The Complete Reference, 2nd Edition

Supported Configuration Files

As explained, the current version of Struts Console supports editing not only Struts configuration files, but also Tiles and Validator configuration files, plus the JSP Tag Library Descriptor (.tld) files. All of these files are XML-based. In order for Struts Console to distinguish these files from any random XML file, they must have a proper XML <!DOCTYPE> declaration. The <!DOCTYPE> declaration specifies the Document Type Definition (DTD) to which the file must conform. Following is a list of the configuration files supported by Struts Console and their <!DOCTYPE> definitions.

The Struts 1.3 Configuration File

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

The Struts 1.2 Configuration File

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

The Struts 1.1 Configuration File

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

The Struts 1.0 Configuration File

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

The Tiles 1.3 Configuration File

<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN" "http://struts.apache.org/dtds/tiles-config_1_3.dtd">

The Tiles 1.1 Configuration File

<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">

The Validator 1.3.0 Configuration File

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

The Validator 1.1 Configuration File

<!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">

The Validator 1.0 Configuration File

<!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">

The JSP Tag Library 1.2 File

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

The JSP Tag Library 1.1 File

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

Note 

Your configuration file must contain one of the preceding <!DOCTYPE> declarations; otherwise, Struts Console will be unable to load your configuration file.

Категории