⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struts-config_1_1.dtd

📁 Chinaxp 论坛源代码
💻 DTD
📖 第 1 页 / 共 3 页
字号:
<!ATTLIST form-bean      id             ID              #IMPLIED><!ATTLIST form-bean      className      %ClassName;     #IMPLIED><!ATTLIST form-bean      dynamic        %Boolean;       #IMPLIED><!ATTLIST form-bean      name           %BeanName;      #REQUIRED><!ATTLIST form-bean      type           %ClassName;     #REQUIRED><!-- The "form-property" element describes a JavaBean property that can be used to     configure an instance of a DynaActionForm or a subclass thereof. This element     is only utilized when the "type" attribute of the enclosing "form-bean" element     is [org.apache.struts.action.DynaActionForm] or a subclass of DynaActionForm. If     a custom DynaActionForm subclass is used, then the "dynamic" attribute of the     enclosing <form-bean> element must be set to "true". Since Struts 1.1.     className       The configuration bean for this form property object. If                     specified, the object must be a subclass of the default                     configuration bean.                     ["org.apache.struts.config.FormPropertyConfig"]     initial         String representation of the initial value for this property.                     If not specified, primitives will be initialized to zero and                     objects initialized to null.     name            The name of the JavaBean property described by this element.     size            The number of array elements to create if the value of the                     "type" attribute specifies an array, but there is no value                     specified for the "initial" attribute.     type            Fully qualified Java class name of the field underlying this                     property, optionally followed by "[]" to indicate that the                     field is indexed.--><!ELEMENT form-property  (set-property*)><!ATTLIST form-property  className      %ClassName;     #IMPLIED><!ATTLIST form-property  initial        CDATA           #IMPLIED><!ATTLIST form-property  name           %PropName;      #REQUIRED><!ATTLIST form-property  size           %Integer;       #IMPLIED><!ATTLIST form-property  type           %ClassName;     #REQUIRED><!-- The "global-forwards" element describes a set of ActionForward objects     [org.apache.struts.action.ActionForward] that are available to all Action     objects as a return value. The individual ActionForwards are configured     through nested <forward> elements. An <action> element may override a global     forward by defining a local <forward> of the same name.     type            Fully qualified Java class to use when instantiating                     ActionForward objects.  If specified, the object must be a                     subclass of the default class type.                     DEPRECATED.                     WARNING:  For Struts 1.0, this value is ignored.  You                     can set the default implementation class name with the                     "forward" initialization parameter to the Struts                     controller servlet.--><!ELEMENT global-forwards (forward*)><!ATTLIST global-forwards id            ID              #IMPLIED><!ATTLIST global-forwards type          %ClassName;     #IMPLIED><!-- The "forward" element describes an ActionForward that is to be made     available to an Action as a return value. An ActionForward is referenced by     a logical name and encapsulates a URI. A "forward" element may be used to     describe both global and local ActionForwards. Global forwards are available     to all the Action objects in the application module. Local forwards can be     nested within an <action> element and only available to an Action object     when it is invoked through that ActionMapping.     className       Fully qualified Java class name of ActionForward                     subclass to use for this object.                     ["org.apache.struts.action.ActionForward"]    contextRelative  Set this to "true" if, in a modular application, the path                     attribute starts with a slash "/" and should be considered                     relative to the entire web application rather than the module.                     Since Struts 1.1.                     [false]     name            The unique identifier for this forward. Referenced by the                     Action object at runtime to select - by its logical name -                     the resource that should complete the request/response.     path            The module-relative or context-relative path to the resources                     that is encapsulated by the logical name of this ActionForward.                     If the path is to be considered context-relative when used in                     a modular application, then the contextRelative attribute                     should be set to "true". This value should begin with a slash                     ("/") character.     redirect        Set to "true" if a redirect instruction should be issued to                     the user-agent so that a new request is issued for this                     forward's resource. If true,  RequestDispatcher.Redirect is                     called. If "false", RequestDispatcher.forward is called instead.                     [false]--><!ELEMENT forward (icon?, display-name?, description?, set-property*)><!ATTLIST forward        id             ID              #IMPLIED><!ATTLIST forward        className      %ClassName;     #IMPLIED><!ATTLIST forward        contextRelative %Boolean;      #IMPLIED><!ATTLIST forward        name           CDATA           #REQUIRED><!ATTLIST forward        path           %RequestPath;   #REQUIRED><!ATTLIST forward        redirect       %Boolean;       #IMPLIED><!-- The "action-mappings" element describes a set of ActionMapping objects     [org.apache.struts.action.ActionMapping] that are available to process     requests matching the url-pattern our ActionServlet registered with the     container. The individual ActionMappings are configured through nested     <action> elements. The following attributes are defined:     type           Fully qualified Java class to use when instantiating                    ActionMapping objects. If specified, the object must be a                    subclass of the default class type.                    WARNING:  For Struts 1.0, this value is ignored.  You                    can set the default implementation class name with the                    "mapping" initialization parameter to the Struts                    controller servlet.--><!ELEMENT action-mappings (action*)><!ATTLIST action-mappings id             ID              #IMPLIED><!ATTLIST action-mappings type           %ClassName;     #IMPLIED><!-- The "action" element describes an ActionMapping object that is to be used     to process a request for a specific module-relative URI. The following     attributes are defined:     attribute       Name of the request-scope or session-scope attribute that                     is used to access our ActionForm bean, if it is other than                     the bean's specified "name". Optional if "name" is specified,                     else not valid.     className       The fully qualified Java class name of the ActionMapping                     subclass to use for this action mapping object. Defaults to                     the type specified by the enclosing <action-mappings>                     element or to "org.apache.struts.action.ActionMapping" if                     not specified.                     ["org.apache.struts.action.ActionMapping"]     forward         Module-relative path of the servlet or other resource that                     will process this request, instead of the Action class                     specified by "type".  The path WILL NOT be processed                     through the "forwardPattern" attribute that is configured                     on the "controller" element for this application module.                     Exactly one of "forward", "include", or "type" must be                     specified.     include         Module-relative path of the servlet or other resource that                     will process this request, instead of the Action class                     specified by "type".  The path WILL NOT be processed                     through the "forwardPattern" attribute that is configured                     on the "controller" element for this application module.                     Exactly one of "forward", "include", or "type" must be                     specified.     input           Module-relative path of the action or other resource to                     which control should be returned if a validation error is                     encountered. Valid only when "name" is specified. Required                     if "name" is specified and the input bean returns                     validation errors. Optional if "name" is specified and the                     input bean does not return validation errors.     name            Name of the form bean, if any, that is associated with this                     action mapping.     path            The module-relative path of the submitted request, starting                     with a "/" character, and without the filename extension if                     extension mapping is used.                     NOTE:  Do *not* include a period in your path name,                     because it will look like a filename extension and                     cause your Action to not be located.     parameter       General-purpose configuration parameter that can be used to                     pass extra information to the Action object selected by                     this action mapping.     prefix          Prefix used to match request parameter names to ActionForm                     property names, if any. Optional if "name" is specified,                     else not allowed.     roles           Comma-delimited list of security role names that are allowed                     access to this ActionMapping object. Since Struts 1.1.     scope           The context ("request" or "session") that is used to                     access our ActionForm bean, if any.  Optional if "name" is                     specified, else not valid.     suffix          Suffix used to match request parameter names to ActionForm                     bean property names, if any. Optional if "name" is                     specified, else not valid.     type            Fully qualified Java class name of the Action subclass                     [org.apache.struts.action.Action] that will process requests                     for this action mapping. Not valid if either the "forward"                     or "include" attribute is specified.  Exactly one of                     "forward", "include", or "type" must be specified.     unknown         Set to "true" if this object should be configured as the                     default action mapping for this module. If a request does not                     match another object, it will be passed to the ActionMapping                     object with unknown set to "true". Only one ActionMapping                     can be marked as "unknown" within a module.                     [false]     validate        Set to "true" if the validate method of the ActionForm bean                     should be called prior to calling the Action object for this                     action mapping, or set to "false" if you do not want the                     validate method called.                     [true]--><!ELEMENT action (icon?, display-name?, description?, set-property*, exception*, forward*)><!ATTLIST action         id             ID              #IMPLIED><!ATTLIST action         attribute      %BeanName;      #IMPLIED><!ATTLIST action         className      %ClassName;     #IMPLIED><!ATTLIST action         forward        %RequestPath;   #IMPLIED><!ATTLIST action         include        %RequestPath;   #IMPLIED><!ATTLIST action         input          %RequestPath;   #IMPLIED><!ATTLIST action         name           %BeanName;      #IMPLIED><!ATTLIST action         parameter      CDATA           #IMPLIED><!ATTLIST action         path           %RequestPath;   #REQUIRED><!ATTLIST action         prefix         CDATA           #IMPLIED><!ATTLIST action         roles          CDATA           #IMPLIED><!ATTLIST action         scope          %RequestScope;  #IMPLIED><!ATTLIST action         suffix         CDATA           #IMPLIED><!ATTLIST action         type           %ClassName;     #IMPLIED><!ATTLIST action         unknown        %Boolean;       #IMPLIED><!ATTLIST action         validate       %Boolean;       #IMPLIED>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -