📄 web-app_2_3.dtd
字号:
Used in: resource-env-ref--><!ELEMENT resource-env-ref-type (#PCDATA)><!--The resource-ref element contains a declaration of a web application'sreference to an external resource. It consists of an optionaldescription, the resource manager connection factory reference name,the indication of the resource manager connection factory typeexpected by the web application code, the type of authentication(Application or Container), and an optional specification of theshareability of connections obtained from the resource (Shareable orUnshareable).Used in: web-appExample: <resource-ref> <res-ref-name>jdbc/EmployeeAppDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref>--><!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth, res-sharing-scope?)><!--The role-link element is a reference to a defined security role. Therole-link element must contain the name of one of the security rolesdefined in the security-role elements.Used in: security-role-ref--><!ELEMENT role-link (#PCDATA)><!--The role-name element contains the name of a security role.The name must conform to the lexical rules for an NMTOKEN.Used in: auth-constraint, run-as, security-role, security-role-ref--><!ELEMENT role-name (#PCDATA)><!--The run-as element specifies the run-as identity to be used for theexecution of the web application. It contains an optional description, andthe name of a security role.Used in: servlet--><!ELEMENT run-as (description?, role-name)><!--The security-constraint element is used to associate securityconstraints with one or more web resource collectionsUsed in: web-app--><!ELEMENT security-constraint (display-name?, web-resource-collection+,auth-constraint?, user-data-constraint?)><!--The security-role element contains the definition of a securityrole. The definition consists of an optional description of thesecurity role, and the security role name.Used in: web-appExample: <security-role> <description> This role includes all employees who are authorized to access the employee service application. </description> <role-name>employee</role-name> </security-role>--><!ELEMENT security-role (description?, role-name)><!--The security-role-ref element contains the declaration of a securityrole reference in the web application's code. The declaration consistsof an optional description, the security role name used in the code,and an optional link to a security role. If the security role is notspecified, the Deployer must choose an appropriate security role.The value of the role-name element must be the String used as theparameter to the EJBContext.isCallerInRole(String roleName) methodor the HttpServletRequest.isUserInRole(String role) method.Used in: servlet--><!ELEMENT security-role-ref (description?, role-name, role-link?)><!--The servlet element contains the declarative data of aservlet. If a jsp-file is specified and the load-on-startup element ispresent, then the JSP should be precompiled and loaded.Used in: web-app--><!ELEMENT servlet (icon?, servlet-name, display-name?, description?,(servlet-class|jsp-file), init-param*, load-on-startup?, run-as?, security-role-ref*)><!--The servlet-class element contains the fully qualified class nameof the servlet.Used in: servlet--><!ELEMENT servlet-class (#PCDATA)><!--The servlet-mapping element defines a mapping between a servletand a url patternUsed in: web-app--><!ELEMENT servlet-mapping (servlet-name, url-pattern)><!--The servlet-name element contains the canonical name of theservlet. Each servlet name is unique within the web application.Used in: filter-mapping, servlet, servlet-mapping--><!ELEMENT servlet-name (#PCDATA)><!--The session-config element defines the session parameters forthis web application.Used in: web-app--><!ELEMENT session-config (session-timeout?)><!--The session-timeout element defines the default session timeoutinterval for all sessions created in this web application. Thespecified timeout must be expressed in a whole number of minutes.If the timeout is 0 or less, the container ensures the defaultbehaviour of sessions is never to time out.Used in: session-config--><!ELEMENT session-timeout (#PCDATA)><!--The small-icon element contains the name of a filecontaining a small (16 x 16) icon image. The filename is a relative path within the web application'swar file.The image may be either in the JPEG or GIF format.The icon can be used by tools.Used in: iconExample:<small-icon>employee-service-icon16x16.jpg</small-icon>--><!ELEMENT small-icon (#PCDATA)><!--The taglib element is used to describe a JSP tag library.Used in: web-app--><!ELEMENT taglib (taglib-uri, taglib-location)><!--the taglib-location element contains the location (as a resourcerelative to the root of the web application) where to find the TagLibary Description file for the tag library.Used in: taglib--><!ELEMENT taglib-location (#PCDATA)><!--The taglib-uri element describes a URI, relative to the locationof the web.xml document, identifying a Tag Library used in the WebApplication.Used in: taglib--><!ELEMENT taglib-uri (#PCDATA)><!--The transport-guarantee element specifies that the communicationbetween client and server should be NONE, INTEGRAL, orCONFIDENTIAL. NONE means that the application does not require anytransport guarantees. A value of INTEGRAL means that the applicationrequires that the data sent between the client and server be sent insuch a way that it can't be changed in transit. CONFIDENTIAL meansthat the application requires that the data be transmitted in afashion that prevents other entities from observing the contents ofthe transmission. In most cases, the presence of the INTEGRAL orCONFIDENTIAL flag will indicate that the use of SSL is required.Used in: user-data-constraint--><!ELEMENT transport-guarantee (#PCDATA)><!--The url-pattern element contains the url pattern of the mapping. Mustfollow the rules specified in Section 11.2 of the Servlet APISpecification.Used in: filter-mapping, servlet-mapping, web-resource-collection--><!ELEMENT url-pattern (#PCDATA)><!--The user-data-constraint element is used to indicate how datacommunicated between the client and container should be protected.Used in: security-constraint--><!ELEMENT user-data-constraint (description?, transport-guarantee)><!--The web-resource-collection element is used to identify a subsetof the resources and HTTP methods on those resources within a webapplication to which a security constraint applies. If no HTTP methodsare specified, then the security constraint applies to all HTTPmethods.Used in: security-constraint--><!ELEMENT web-resource-collection (web-resource-name, description?,url-pattern*, http-method*)><!--The web-resource-name contains the name of this web resourcecollection.Used in: web-resource-collection--><!ELEMENT web-resource-name (#PCDATA)><!--The welcome-file element contains file name to use as a defaultwelcome file, such as index.htmlUsed in: welcome-file-list--><!ELEMENT welcome-file (#PCDATA)><!--The welcome-file-list contains an ordered list of welcome fileselements.Used in: web-app--><!ELEMENT welcome-file-list (welcome-file+)><!--The ID mechanism is to allow tools that produce additional deploymentinformation (i.e., information beyond the standard deploymentdescriptor information) to store the non-standard information in aseparate file, and easily refer from these tool-specific files to theinformation in the standard deployment descriptor.Tools are not allowed to add the non-standard information into thestandard deployment descriptor.--><!ATTLIST auth-constraint id ID #IMPLIED><!ATTLIST auth-method id ID #IMPLIED><!ATTLIST context-param id ID #IMPLIED><!ATTLIST description id ID #IMPLIED><!ATTLIST display-name id ID #IMPLIED><!ATTLIST distributable id ID #IMPLIED><!ATTLIST ejb-link id ID #IMPLIED><!ATTLIST ejb-local-ref id ID #IMPLIED><!ATTLIST ejb-ref id ID #IMPLIED><!ATTLIST ejb-ref-name id ID #IMPLIED><!ATTLIST ejb-ref-type id ID #IMPLIED><!ATTLIST env-entry id ID #IMPLIED><!ATTLIST env-entry-name id ID #IMPLIED><!ATTLIST env-entry-type id ID #IMPLIED><!ATTLIST env-entry-value id ID #IMPLIED><!ATTLIST error-code id ID #IMPLIED><!ATTLIST error-page id ID #IMPLIED><!ATTLIST exception-type id ID #IMPLIED><!ATTLIST extension id ID #IMPLIED><!ATTLIST filter id ID #IMPLIED><!ATTLIST filter-class id ID #IMPLIED><!ATTLIST filter-mapping id ID #IMPLIED><!ATTLIST filter-name id ID #IMPLIED><!ATTLIST form-error-page id ID #IMPLIED><!ATTLIST form-login-config id ID #IMPLIED><!ATTLIST form-login-page id ID #IMPLIED><!ATTLIST home id ID #IMPLIED><!ATTLIST http-method id ID #IMPLIED><!ATTLIST icon id ID #IMPLIED><!ATTLIST init-param id ID #IMPLIED><!ATTLIST jsp-file id ID #IMPLIED><!ATTLIST large-icon id ID #IMPLIED><!ATTLIST listener id ID #IMPLIED><!ATTLIST listener-class id ID #IMPLIED><!ATTLIST load-on-startup id ID #IMPLIED><!ATTLIST local id ID #IMPLIED><!ATTLIST local-home id ID #IMPLIED><!ATTLIST location id ID #IMPLIED><!ATTLIST login-config id ID #IMPLIED><!ATTLIST mime-mapping id ID #IMPLIED><!ATTLIST mime-type id ID #IMPLIED><!ATTLIST param-name id ID #IMPLIED><!ATTLIST param-value id ID #IMPLIED><!ATTLIST realm-name id ID #IMPLIED><!ATTLIST remote id ID #IMPLIED><!ATTLIST res-auth id ID #IMPLIED><!ATTLIST res-ref-name id ID #IMPLIED><!ATTLIST res-sharing-scope id ID #IMPLIED><!ATTLIST res-type id ID #IMPLIED><!ATTLIST resource-env-ref id ID #IMPLIED><!ATTLIST resource-env-ref-name id ID #IMPLIED><!ATTLIST resource-env-ref-type id ID #IMPLIED><!ATTLIST resource-ref id ID #IMPLIED><!ATTLIST role-link id ID #IMPLIED><!ATTLIST role-name id ID #IMPLIED><!ATTLIST run-as id ID #IMPLIED><!ATTLIST security-constraint id ID #IMPLIED><!ATTLIST security-role id ID #IMPLIED><!ATTLIST security-role-ref id ID #IMPLIED><!ATTLIST servlet id ID #IMPLIED><!ATTLIST servlet-class id ID #IMPLIED><!ATTLIST servlet-mapping id ID #IMPLIED><!ATTLIST servlet-name id ID #IMPLIED><!ATTLIST session-config id ID #IMPLIED><!ATTLIST session-timeout id ID #IMPLIED><!ATTLIST small-icon id ID #IMPLIED><!ATTLIST taglib id ID #IMPLIED><!ATTLIST taglib-location id ID #IMPLIED><!ATTLIST taglib-uri id ID #IMPLIED><!ATTLIST transport-guarantee id ID #IMPLIED><!ATTLIST url-pattern id ID #IMPLIED><!ATTLIST user-data-constraint id ID #IMPLIED><!ATTLIST web-app id ID #IMPLIED><!ATTLIST web-resource-collection id ID #IMPLIED><!ATTLIST web-resource-name id ID #IMPLIED><!ATTLIST welcome-file id ID #IMPLIED><!ATTLIST welcome-file-list id ID #IMPLIED>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -