📄 web-app_2_3.dtd
字号:
<!--The web-resource-name contains the name of this web resourcecollection--><!ELEMENT web-resource-name (#PCDATA)><!--The http-method contains an HTTP method (GET | POST |...)--><!ELEMENT http-method (#PCDATA)><!--The user-data-constraint element is used to indicate how datacommunicated between the client and container should be protected--><!ELEMENT user-data-constraint (description?, transport-guarantee)><!--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.--><!ELEMENT transport-guarantee (#PCDATA)><!--The auth-constraint element indicates the user roles that shouldbe permitted access to this resource collection. The role-name used here must either correspond to the role-name of one of the security-role elements defined for this web application, or be the specially reserved role-name "*" that is a compact syntax for indicating all roles in the web application. If both "*" and rolenames appear, the container interprets this as all roles.If no roles are defined, no user is allowed access to the portion ofthe web application described by the containing security-constraint.The container matches role names case sensitively when determining access.--><!ELEMENT auth-constraint (description?, role-name*)><!--The role-name element contains the name of a security role.--><!ELEMENT role-name (#PCDATA)><!--The login-config element is used to configure the authenticationmethod that should be used, the realm name that should be used forthis application, and the attributes that are needed by the form loginmechanism.--><!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)><!--The realm name element specifies the realm name to use in HTTPBasic authorization--><!ELEMENT realm-name (#PCDATA)><!--The form-login-config element specifies the login and error pagesthat should be used in form based login. If form based authenticationis not used, these elements are ignored.--><!ELEMENT form-login-config (form-login-page, form-error-page)><!--The form-login-page element defines the location in the web appwhere the page that can be used for login can be found. The pathbegins with a leading / and is interpreted relative to the root of theWAR.--><!ELEMENT form-login-page (#PCDATA)><!--The form-error-page element defines the location in the web appwhere the error page that is displayed when login is not successfulcan be found. The path begins with a leading / and is interpreted relative to the root of the WAR.--><!ELEMENT form-error-page (#PCDATA)><!--The auth-method element is used to configure the authenticationmechanism for the web application. As a prerequisite to gaining access to any web resources which are protected by an authorizationconstraint, a user must have authenticated using the configuredmechanism. Legal values for this element are "BASIC", "DIGEST","FORM", or "CLIENT-CERT".--><!ELEMENT auth-method (#PCDATA)><!--The security-role element contains the declaration of a securityrole which is used in the security-constraints placed on the webapplication.--><!ELEMENT security-role (description?, role-name)><!--The security-role-ref element defines a mapping between the name of role called from a Servlet using isUserInRole(String name) and the name of a security role defined for the web application. For example, to map the security role reference "FOO" to the security role with role-name "manager" the sytax would be:<security-role-ref> <role-name>FOO</role-name> <role-link>manager</manager></security-role-ref>In this case if the servlet called by a user belonging to the "manager" security role made the API call isUserInRole("FOO") the result would be true.Since the role-name "*" has a special meaning for authorization constraints, its value is not permitted here.--><!ELEMENT security-role-ref (description?, role-name, role-link)><!--The role-link element is used to link a security role referenceto a defined security role. The role-link element must contain thename of one of the security roles defined in the security-roleelements.--><!ELEMENT role-link (#PCDATA)><!--The env-entry element contains the declaration of a web application'senvironment entry. The declaration consists of an optionaldescription, the name of the environment entry, and an optionalvalue. If a value is not specified, one must be suppliedduring deployment.--><!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,env-entry-type)><!--The env-entry-name element contains the name of a web applications'senvironment entry. The name is a JNDI name relative to thejava:comp/env context. The name must be unique within a web application.Example: <env-entry-name>minAmount</env-entry-name>--><!ELEMENT env-entry-name (#PCDATA)><!--The env-entry-value element contains the value of A_COMPONENT'senvironment entry. The value must be a String that is valid for theconstructor of the specified type that takes a single Stringparameter, or for java.lang.Character, a single character.Example: <env-entry-value>100.00</env-entry-value>--><!ELEMENT env-entry-value (#PCDATA)><!--The env-entry-type element contains the fully-qualified Java type ofthe environment entry value that is expected by THE_COMPONENT'scode.The following are the legal values of env-entry-type: java.lang.Boolean java.lang.Byte java.lang.Character java.lang.String java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double--><!ELEMENT env-entry-type (#PCDATA)><!--The ejb-ref element is used for the declaration of a reference toan enterprise bean's home. The declaration consists of: - an optional description - the EJB reference name used in the code of the servlet that's referencing the enterprise bean - the expected type of the referenced enterprise bean - the expected home and remote interfaces of the referenced enterprise bean - optional ejb-link information, used to specify the referenced enterprise bean --><!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type, home, remote, ejb-link?)><!--The ejb-ref-name element contains the name of an EJB reference. TheEJB reference is an entry in the servlet's environment and isrelative to the java:comp/env context. The name must be uniquewithin the web application.It is recommended that name is prefixed with "ejb/".Example: <ejb-ref-name>ejb/Payroll</ejb-ref-name>--><!ELEMENT ejb-ref-name (#PCDATA)><!-- The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following: <ejb-ref-type>Entity</ejb-ref-type> <ejb-ref-type>Session</ejb-ref-type>--><!ELEMENT ejb-ref-type (#PCDATA)><!--The home element contains the fully-qualified name of the enterprisebean's home interface.Example:<home>com.aardvark.payroll.PayrollHome</home>--><!ELEMENT home (#PCDATA)><!--The remote element contains the fully-qualified name of the enterprisebean's remote interface.Example: <remote>com.wombat.empl.EmployeeService</remote>--><!ELEMENT remote (#PCDATA)><!--The ejb-link element is used in the ejb-ref or ejb-local-refelements to specify that an EJB reference is linked to anotherenterprise bean.The value of the ejb-link element must be the ejb-name of anenterprise bean in the same J2EE application unit.The name in the ejb-link element may be composed of apath name specifying the ejb-jar containing the referenced enterprisebean with the ejb-name of the target bean appended and separated fromthe path name by "#". The path name is relative to the WARcontaining the web application that is referencing the enterprise bean.This allows multiple enterprise beans with the same ejb-name to beuniquely identified.Examples: <ejb-link>EmployeeRecord</ejb-link> <ejb-link>../products/product.jar#ProductEJB</ejb-link>--><!ELEMENT ejb-link (#PCDATA)><!--The ejb-local-ref element is used for the declaration of a reference toan enterprise bean's local home. The declaration consists of: - an optional description - the EJB reference name used in the code of THE_COMPONENT that's referencing the enterprise bean - the expected type of the referenced enterprise bean - the expected local home and local interfaces of the referenced enterprise bean - optional ejb-link information, used to specify the referenced enterprise bean--><!ELEMENT ejb-local-ref (description?, ejb-ref-name, ejb-ref-type, local-home, local, ejb-link?)><!-- The local element contains the fully-qualified name of theenterprise bean's local interface. Used by ejb-local-ref--><!ELEMENT local (#PCDATA)><!-- The local-home element contains the fully-qualified name of theenterprise bean's local home interface. Used by ejb-local-ref--><!ELEMENT local-home (#PCDATA)><!--The run-as element, if defined for a servlet, overrides the security identity used to call an EJBby that servlet in this web application. The role-name is one of the security roles alreadydefined for this web application.Used by: <servlet>--><!ELEMENT run-as (description?, role-name)><!--The ID mechanism is to allow tools to easily make tool-specificreferences to the elements of the deployment descriptor. This allowstools that produce additional deployment information (i.e informationbeyond the standard deployment descriptor information) to store thenon-standard information in a separate file, and easily refer fromthese tools-specific files to the information in the standard web-appdeployment descriptor.--><!ATTLIST web-app id ID #IMPLIED><!ATTLIST filter id ID #IMPLIED><!ATTLIST filter-name id ID #IMPLIED><!ATTLIST filter-class id ID #IMPLIED><!ATTLIST filter-mapping id ID #IMPLIED><!ATTLIST icon id ID #IMPLIED><!ATTLIST small-icon id ID #IMPLIED><!ATTLIST large-icon id ID #IMPLIED><!ATTLIST display-name id ID #IMPLIED><!ATTLIST description id ID #IMPLIED><!ATTLIST distributable id ID #IMPLIED><!ATTLIST context-param id ID #IMPLIED><!ATTLIST param-name id ID #IMPLIED><!ATTLIST param-value id ID #IMPLIED><!ATTLIST listener id ID #IMPLIED><!ATTLIST listener-class id ID #IMPLIED><!ATTLIST servlet id ID #IMPLIED><!ATTLIST servlet-name id ID #IMPLIED><!ATTLIST servlet-class id ID #IMPLIED><!ATTLIST jsp-file id ID #IMPLIED><!ATTLIST init-param id ID #IMPLIED><!ATTLIST load-on-startup id ID #IMPLIED><!ATTLIST servlet-mapping id ID #IMPLIED><!ATTLIST url-pattern id ID #IMPLIED><!ATTLIST session-config id ID #IMPLIED><!ATTLIST session-timeout id ID #IMPLIED><!ATTLIST mime-mapping id ID #IMPLIED><!ATTLIST extension id ID #IMPLIED><!ATTLIST mime-type id ID #IMPLIED><!ATTLIST welcome-file-list id ID #IMPLIED><!ATTLIST welcome-file id ID #IMPLIED><!ATTLIST taglib id ID #IMPLIED><!ATTLIST taglib-uri id ID #IMPLIED><!ATTLIST taglib-location id ID #IMPLIED><!ATTLIST error-page id ID #IMPLIED><!ATTLIST error-code id ID #IMPLIED><!ATTLIST exception-type id ID #IMPLIED><!ATTLIST location 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 res-ref-name id ID #IMPLIED><!ATTLIST res-type id ID #IMPLIED><!ATTLIST res-auth id ID #IMPLIED><!ATTLIST res-sharing-scope id ID #IMPLIED><!ATTLIST security-constraint id ID #IMPLIED><!ATTLIST web-resource-collection id ID #IMPLIED><!ATTLIST web-resource-name id ID #IMPLIED><!ATTLIST http-method id ID #IMPLIED><!ATTLIST user-data-constraint id ID #IMPLIED><!ATTLIST transport-guarantee id ID #IMPLIED><!ATTLIST auth-constraint id ID #IMPLIED><!ATTLIST role-name id ID #IMPLIED><!ATTLIST login-config id ID #IMPLIED><!ATTLIST realm-name id ID #IMPLIED><!ATTLIST form-login-config id ID #IMPLIED><!ATTLIST form-login-page id ID #IMPLIED><!ATTLIST form-error-page id ID #IMPLIED><!ATTLIST auth-method id ID #IMPLIED><!ATTLIST security-role id ID #IMPLIED><!ATTLIST security-role-ref id ID #IMPLIED><!ATTLIST role-link id ID #IMPLIED><!ATTLIST env-entry id ID #IMPLIED><!ATTLIST env-entry-name id ID #IMPLIED><!ATTLIST env-entry-value id ID #IMPLIED><!ATTLIST env-entry-type id ID #IMPLIED><!ATTLIST ejb-ref id ID #IMPLIED><!ATTLIST ejb-ref-name id ID #IMPLIED><!ATTLIST ejb-ref-type id ID #IMPLIED><!ATTLIST home id ID #IMPLIED><!ATTLIST remote id ID #IMPLIED><!ATTLIST ejb-link id ID #IMPLIED><!ATTLIST ejb-local-ref id ID #IMPLIED><!ATTLIST local-home id ID #IMPLIED><!ATTLIST local id ID #IMPLIED><!ATTLIST run-as id ID #IMPLIED>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -