📄 web.dtd
字号:
<?xml version="1.0" encoding="ISO-8859-1"?><!--The web-app element is the root of the deployment descriptor fora web application--><!ELEMENT web-app (icon?, display-name?, description?, distributable?,context-param*, servlet*, servlet-mapping*, session-config?,mime-mapping*, welcome-file-list?, error-page*, taglib*,resource-ref*, security-constraint*, login-config?, security-role*,env-entry*, ejb-ref*)><!--The icon element contains a small-icon and a large-icon elementwhich specify the location within the web application for a small andlarge image used to represent the web application in a GUI tool. At aminimum, tools must accept GIF and JPEG format images.--><!ELEMENT icon (small-icon?, large-icon?)><!--The small-icon element contains the location within the webapplication of a file containing a small (16x16 pixel) icon image.--><!ELEMENT small-icon (#PCDATA)><!--The large-icon element contains the location within the webapplication of a file containing a large (32x32 pixel) icon image.--><!ELEMENT large-icon (#PCDATA)><!--The display-name element contains a short name that is intendedto be displayed by GUI tools--><!ELEMENT display-name (#PCDATA)><!--The description element is used to provide descriptive text aboutthe parent element.--><!ELEMENT description (#PCDATA)><!--The distributable element, by its presence in a web applicationdeployment descriptor, indicates that this web application isprogrammed appropriately to be deployed into a distributed servletcontainer--><!ELEMENT distributable EMPTY><!--The context-param element contains the declaration of a webapplication's servlet context initialization parameters.--><!ELEMENT context-param (param-name, param-value, description?)><!--The param-name element contains the name of a parameter.--><!ELEMENT param-name (#PCDATA)><!--The param-value element contains the value of a parameter.--><!ELEMENT param-value (#PCDATA)><!--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.--><!ELEMENT servlet (icon?, servlet-name, display-name?, description?,(servlet-class|jsp-file), init-param*, load-on-startup?, security-role-ref*)><!--The servlet-name element contains the canonical name of theservlet.--><!ELEMENT servlet-name (#PCDATA)><!--The servlet-class element contains the fully qualified class nameof the servlet.--><!ELEMENT servlet-class (#PCDATA)><!--The jsp-file element contains the full path to a JSP file withinthe web application.--><!ELEMENT jsp-file (#PCDATA)><!--The init-param element contains a name/value pair as aninitialization param of the servlet--><!ELEMENT init-param (param-name, param-value, description?)><!--The load-on-startup element indicates that this servlet should beloaded on the startup of the web application. The optional contents ofthese element must be a positive integer indicating the order in whichthe servlet should be loaded. Lower integers are loaded before higherintegers. If no value is specified, or if the value specified is not apositive integer, the container is free to load it at any time in thestartup sequence.--><!ELEMENT load-on-startup (#PCDATA)><!--The servlet-mapping element defines a mapping between a servletand a url pattern--><!ELEMENT servlet-mapping (servlet-name, url-pattern)><!--The url-pattern element contains the url pattern of themapping. Must follow the rules specified in Section 10 of the ServletAPI Specification.--><!ELEMENT url-pattern (#PCDATA)><!--The session-config element defines the session parameters forthis web application.--><!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.--><!ELEMENT session-timeout (#PCDATA)><!--The mime-mapping element defines a mapping between an extensionand a mime type.--><!ELEMENT mime-mapping (extension, mime-type)><!--The extension element contains a string describing anextension. example: "txt"--><!ELEMENT extension (#PCDATA)><!--The mime-type element contains a defined mime type. example:"text/plain"--><!ELEMENT mime-type (#PCDATA)><!--The welcome-file-list contains an ordered list of welcome fileselements.--><!ELEMENT welcome-file-list (welcome-file+)><!--The welcome-file element contains file name to use as a defaultwelcome file, such as index.html--><!ELEMENT welcome-file (#PCDATA)><!--The taglib element is used to describe a JSP tag library.--><!ELEMENT taglib (taglib-uri, taglib-location)><!--The taglib-uri element describes a URI, relative to the locationof the web.xml document, identifying a Tag Library used in the WebApplication.--><!ELEMENT taglib-uri (#PCDATA)><!--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.--><!ELEMENT taglib-location (#PCDATA)><!--The error-page element contains a mapping between an error codeor exception type to the path of a resource in the web application--><!ELEMENT error-page ((error-code | exception-type), location)><!--The error-code contains an HTTP error code, ex: 404--><!ELEMENT error-code (#PCDATA)><!--The exception type contains a fully qualified class name of aJava exception type.--><!ELEMENT exception-type (#PCDATA)><!--The location element contains the location of the resource in theweb application--><!ELEMENT location (#PCDATA)><!--The resource-ref element contains a declaration of a WebApplication's reference to an external resource.--><!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth)><!--The res-ref-name element specifies the name of the resourcefactory reference name.--><!ELEMENT res-ref-name (#PCDATA)><!--The res-type element specifies the (Java class) type of the datasource.--><!ELEMENT res-type (#PCDATA)><!--The res-auth element indicates whether the application componentcode performs resource signon programmatically or whether thecontainer signs onto the resource based on the principle mappinginformation supplied by the deployer. Must be CONTAINER or SERVLET--><!ELEMENT res-auth (#PCDATA)><!--The security-constraint element is used to associate securityconstraints with one or more web resource collections--><!ELEMENT security-constraint (web-resource-collection+,auth-constraint?, user-data-constraint?)><!--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 HTTP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -