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

📄 struts-config_1_2.dtd

📁 spring + ibatis + struts
💻 DTD
📖 第 1 页 / 共 3 页
字号:
<!ELEMENT global-exceptions (exception*)><!ATTLIST global-exceptions id          ID              #IMPLIED><!-- The "exception" element registers an ExceptionHandler for an exception type.     The following attributes are defined:    bundle           Servlet context attribute for the message resources bundle                     associated with this handler. The default attribute is the                     value specified by the string constant declared at                     Globals.MESSAGES_KEY.                     [org.apache.struts.Globals.MESSAGES_KEY]    className        The configuration bean for this ExceptionHandler object.                     If specified, className must be a subclass of the default                     configuration bean                     ["org.apache.struts.config.ExceptionConfig"]    handler          Fully qualified Java class name for this exception handler.                     ["org.apache.struts.action.ExceptionHandler"]    key              The key to use with this handler's message resource bundle                     that will retrieve the error message template for this                     exception.    path             The module-relative URI to the resource that will complete                     the request/response if this exception occurs.    scope            The context ("request" or "session") that is used to access                     the ActionError object [org.apache.struts.action.ActionError]                     for this exception.    type             Fully qualified Java class name of the exception type to                     register with this handler.--><!ELEMENT exception (icon?, display-name?, description?, set-property*)><!ATTLIST exception      id             ID              #IMPLIED><!ATTLIST exception      bundle         %AttributeName; #IMPLIED><!ATTLIST exception      className      %ClassName;     #IMPLIED><!ATTLIST exception      handler        %ClassName;     #IMPLIED><!ATTLIST exception      key            CDATA           #REQUIRED><!ATTLIST exception      path           %RequestPath;   #IMPLIED><!ATTLIST exception      scope          CDATA           #IMPLIED><!ATTLIST exception      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.                     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 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.                     DEPRECATED.                     [false]     module          The module prefix to use with this path. This value should                     begin with a slash ("/").     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        module         %RequestPath;   #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 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 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. [session]     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>

⌨️ 快捷键说明

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