?? struts-config_1_1.dtd
字號:
<!-- The "controller" element describes the ControllerConfig bean [org.apache.struts.config.ControllerConfig] that encapsulates a module's runtime configuration. The following attributes are defined: bufferSize The size of the input buffer used when processing file uploads. [4096] className Fully qualified Java class name of the ControllerConfig subclass for this controller object. If specified, the object must be a subclass of the default class. ["org.apache.struts.config.ControllerConfig"] contentType Default content type (and optional character encoding) to be set on each response. May be overridden by the Action, JSP, or other resource to which the request is forwarded. ["text/html"] debug Debugging detail level for this module. [0] DEPRECATED - configure the logging detail level in your underlying logging implementation. forwardPattern Replacement pattern defining how the "path" attribute of a <forward> element is mapped to a context-relative URL when it starts with a slash (and when the contextRelative property is false). This value may consist of any combination of the following: - "$M" - Replaced by the module prefix of this module - "$P" - Replaced by the "path" attribute of the selected "forward" element - "$$" - Causes a literal dollar sign to be rendered - "$x" - (Where "x" is any character not defined above) Silently swallowed, reserved for future use If not specified, the default forwardPattern is "$M$P", which is consistent with the previous behavior of forwards. Since Struts 1.1. ["$M$P"] inputForward Set to "true" if you want the "input" attribute of <action> elements to be the name of a local or global ActionForward, which will then be used to calculate the ultimate URL. Set to "false" (the default) to treat the "input" parameter of <action> elements as a module-relative path to the resource to be used as the input form. Since Struts 1.1. [false] locale Set to "true" if you want a Locale object stored in the user's session if not already present. [true] maxFileSize The maximum size (in bytes) of a file to be accepted as a file upload. Can be expressed as a number followed by a "K", "M", or "G", which are interpreted to mean kilobytes, megabytes, or gigabytes, respectively. ["250M"] memFileSize The maximum size (in bytes) of a file whose contents will be retained in memory after uploading. Files larger than this threshold will be written to some alternative storage medium, typically a hard disk. Can be expressed as a number followed by a "K", "M", or "G", which are interpreted to mean kilobytes, megabytes, or gigabytes, respectively. ["256K"] multipartClass The fully qualified Java class name of the multipart request handler class to be used with this module. ["org.apache.struts.upload.CommonsMultipartRequestHandler"] nocache Set to "true" if you want the controller to add HTTP headers for defeating caching to every response from this module. [false] pagePattern Replacement pattern defining how the "page" attribute of custom tags using it is mapped to a context-relative URL of the corresponding resource. This value may consist of any combination of the following: - "$M" - Replaced by the module prefix of this module - "$P" - Replaced by the value of the "page" attribute - "$$" - Causes a literal dollar sign to be rendered - "$x" - (Where "x" is any character not defined above) Silently swallowed, reserved for future use If not specified, the default forwardPattern is "$M$P", which is consistent with previous hard coded behavior of URL evaluation for "page" attributes. ["$M$P"] processorClass The fully qualified Java class name of the RequestProcessor subclass to be used with this module. ["org.apache.struts.action.RequestProcessor"] tempDir Temporary working directory to use when processing file uploads. [{Directory provided by servlet container}]--><!ELEMENT controller (set-property*)><!ATTLIST controller id ID #IMPLIED><!ATTLIST controller bufferSize %Integer; #IMPLIED><!ATTLIST controller className %ClassName; #IMPLIED><!ATTLIST controller contentType CDATA #IMPLIED><!ATTLIST controller debug %Integer; #IMPLIED><!ATTLIST controller forwardPattern CDATA #IMPLIED><!ATTLIST controller inputForward %Boolean; #IMPLIED><!ATTLIST controller locale %Boolean; #IMPLIED><!ATTLIST controller maxFileSize CDATA #IMPLIED><!ATTLIST controller memFileSize CDATA #IMPLIED><!ATTLIST controller multipartClass %ClassName; #IMPLIED><!ATTLIST controller nocache %Boolean; #IMPLIED><!ATTLIST controller pagePattern CDATA #IMPLIED><!ATTLIST controller processorClass %ClassName; #IMPLIED><!ATTLIST controller tempDir CDATA #IMPLIED><!-- The "message-resources" element describes a MessageResources object with message templates for this module. The following attributes are defined: className The configuration bean for this message resources object. If specified, the object must be a subclass of the default configuration bean. ["org.apache.struts.config.MessageResourcesConfig"] factory Fully qualified Java class name of the MessageResourcesFactory subclass to use for this message resources object. ["org.apache.struts.util.PropertyMessageResourcesFactory"] key Servlet context attribute under which this message resources bundle will be stored. The default attribute is the value specified by the string constant at [Globals.MESSAGES_KEY]. The module prefix (if any) is appended to the key (${key}${prefix}). [org.apache.struts.Globals.MESSAGES_KEY] NOTE: The module prefix includes the leading slash, so the default message resource bundle for a module named "foo" is stored under "org.apache.struts.action.MESSAGE/foo". null Set to "true" if you want our message resources to return a null string for unknown message keys, or "false" to return a message with the bad key value. parameter Configuration parameter to be passed to the createResources method of our factory object.--><!ELEMENT message-resources (set-property*)><!ATTLIST message-resources id ID #IMPLIED><!ATTLIST message-resources className %ClassName; #IMPLIED><!ATTLIST message-resources factory %ClassName; #IMPLIED><!ATTLIST message-resources key %AttributeName; #IMPLIED><!ATTLIST message-resources null %Boolean; #IMPLIED><!ATTLIST message-resources parameter CDATA #REQUIRED><!-- The "plug-in" element specifies the fully qualified class name of a general-purpose application plug-in module that receives notification of application startup and shutdown events. An instance of the specified class is created for each element, and can be configured with nested <set-property> elements. The following attributes are supported: className Fully qualified Java class name of the plug-in class; must implement [org.apache.struts.action.PlugIn].--><!ELEMENT plug-in (set-property*)><!ATTLIST plug-in id ID #IMPLIED><!ATTLIST plug-in className %ClassName; #REQUIRED><!-- ========== Subordinate Elements ====================================== --><!-- The "description" element contains descriptive (paragraph length) text about the surrounding element, suitable for use in GUI tools.--><!ELEMENT description (#PCDATA)><!ATTLIST description id ID #IMPLIED><!-- The "display-name" element contains a short (one line) description of the surrounding element, suitable for use in GUI tools.--><!ELEMENT display-name (#PCDATA)><!ATTLIST display-name id ID #IMPLIED><!-- The "icon" element contains a small-icon and large-icon element which specify the location, relative to the Struts configuration file, for small and large images used to represent the surrounding element in GUI tools.--><!ELEMENT icon (small-icon?, large-icon?)><!ATTLIST icon id ID #IMPLIED><!-- The "large-icon" element specifies the location, relative to the Struts configuration file, of a resource containing a large (32x32 pixel) icon image.--><!ELEMENT large-icon (%Location;)><!ATTLIST large-icon id ID #IMPLIED><!-- The "set-property" element specifies the method name and initial value of an additional JavaBean configuration property. When the object representing the surrounding element is instantiated, the accessor for the indicated property is called and passed the indicated value. The "set-property" element is especially useful when a custom subclass is used with <data-source>, <forward>, <action>, or <plug-in> elements. The subclass can be passed whatever other properties may be required to configure the object without changing how the struts-config is parsed. property Name of the JavaBeans property whose setter method will be called. value String representation of the value to which this property will be set, after suitable type conversion--><!ELEMENT set-property EMPTY><!ATTLIST set-property id ID #IMPLIED><!ATTLIST set-property property %PropName; #REQUIRED><!ATTLIST set-property value CDATA #REQUIRED><!-- The "small-icon" element specifies the location, relative to the Struts configuration file, of a resource containing a small (16x16 pixel) icon image.--><!ELEMENT small-icon (%Location;)><!ATTLIST small-icon id ID #IMPLIED>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -