首页 > 学院 > 开发设计 > 正文

部署描述符(web.xml)元素---[EN Ed]

2019-11-17 06:34:00
字体:
来源:转载
供稿:网友

web.xml Deployment Descriptor Elements

 

This following sections describe the deployment descriptor elements defined in the web.xml file. The root element for web.xml is <web-app>. The following elements are defined within the <web-app> element:

  • icon Element

    <small-icon>

    <large-icon>

  • display-name Element

  • description Element

  • distributable Element

  • context-param Element

    <param-name>

    <param-value>

    <description>

  • filter Element

    <icon>

    <filter-name>

    <display-name>

    <description>

    <filter-class>

    <init-param>

  • filter-mapping Element

    <filter-name>

    <url-pattern>

    <servlet>

  • listener Element

    <listener-class>

  • servlet Element

    <icon>

    <small-icon>

    <large-icon>

    <servlet-name>

    <display-name>

    <description>

    <servlet-class>

    <jsp-file>

    <init-param>

    <param-name>

    <param-value>

    <description>

    <load-on-startup>

    <security-role- ref>

    <description>

    <role-name>

    <role-link>

  • servlet-mapping Element

    <servlet-name>

    <url-pattern>

  • session-config Element

    <session-timeout>

  • mime-mapping Element

    <extension>

    <mime-type>

  • welcome-file-list Element

    <welcome-file>

  • error-page Element

    <error-code>

    <exception-type>

    <location>

  • taglib Element

    <taglib-location>

    <taglib-uri>

  • resource-ref Element

    <description>

    <res-ref-name>

    <res-type>

    <res-auth>

    <res-sharing-scope>

  • security-constraint Element

    <web-resource- collection>

    <web-resource- name>

    <description>

    <url-pattern>

    <http-method>

    <auth-constraint>

    <description>

    <role-name>

    <user-data- constraint>

    <description>

    <transport- guarantee>

  • login-config Element

    <auth-method>

    <realm-name>

    <form-login- config>

    <form-login-page>

    <form-error-page>

  • security-role Element

    <description>

    <role-name>

  • env-entry Element

    <description>

    <env-entry-name>

    <env-entry-value>

    <env-entry-type>

  • ejb-ref Element

    <description>

    <ejb-ref-name>

    <ejb-ref-type>

    <home>

    <remote>

    <ejb-link>

    <run-as>

 


icon Element

The icon element specifies the location within the Web application for a small and large image used to rePResent the Web Application in a GUI tool. (The servlet element also has an element called the icon element, used to supply an icon to represent a servlet in a GUI tool.)

This element is not currently used by WebLogic Server.

The following table describes the elements you can define within an icon element.

Element

Required/



下一篇:标准的web.xml

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表