WEB开发网
开发学院WEB开发Jsp 部署描述符(web.xml)元素---[EN Ed] 阅读

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

 2008-01-05 19:27:55 来源:WEB开发网   
核心提示:web.xml Deployment Descriptor ElementsThis following sections describe the deployment descriptor elements defined in the web.xml file. The root element for web.

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/

Tags:部署 描述 web

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接