配置描述符(web.xml)DTD

类别:Java 点击:0 评论:0 推荐:

配置描述符(web.xml)DTD
-----------------------
<!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*
)>
(注: ?-可选(0~1) *-任意次(0~n) +-(1~)

<!ELEMENT icon (small-icon?,large-icon?)>

<!ELEMENT display-name (#PCDATA) >

<!ELEMENT description (#PCDATA) >

<!ELEMENT distributable EMPTY >

<!ELEMENT context-param (param-name,param-value,description?) >

<!ELEMENT servlet (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,security-role-ref*)>

 <!ELEMENT init-param (param-name,param-value,description?) >

<!ELEMENT servlet-mapping (servlet-name,url-pattern) >

<!ELEMENT session-config (session-timeout?) >

<!ELEMENT mime-mapping (extention,mime-type) >

<!ELEMENT welcome-file-list (welcome-file+) >

<!ELEMENT taglib (taglib-uri,taglib-location) >

<!ELEMENT error-page ((error-code|exception-type),location) >

<!ELEMENT resource-ref (description?,res-ref-name,res-type,res-auth) >

<!ELEMENT security-constraint (web-resource-collection+,auth-constraint?,user-data-constraint?) >

<!ELEMENT login-config (auth-method?,realm-name?,form-login-config?) >
 
 <!ELEMENT form-login-config (form-login-page,form-error-page) >

<!ELEMENT security-role (description?,role-name) >

<!ELEMENT env-entry(description?,env-entry-name,env-entry-value?,env-entry-type) >

<!ELEMENT ejb-ref(description?,ejb-ref-name,ejb-ref-type,home,remote,ejb-link?)>

(未声明元素类型#PCDATA)

本文地址:http://com.8s8s.com/it/it15836.htm