一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

J2EE deployment files(web.xml)

时间:2022-07-02 17:37:27 编辑:袖梨 来源:一聚教程网


This file contains the configuration for a web-application.

The icon element contains a small-icon and a large-icon element which specify the location within the web application for a small and large image used to represent the web application in a GUI tool.
path/to/icon.gif
The small-icon element contains the location within the web application of a file containing a small (16x16 pixel) icon image. The image must be either GIF or JPEG format and the filename must end with the extension of ".gif" or ".jpg".
path/to/icon.gif
The large-icon element contains the location within the web application of a file containing a large (32x32 pixel) icon image. The image must be either GIF or JPEG format and the filename must end with the extension of ".gif" or ".jpg".

A friendly name
A friendly name that describes this unit.
The description
A short description, use etc.

The distributable element, by its presence in a web application deployment descriptor, indicates that this web application is programmed appropriately to be deployed into a distributed servlet container.

The context-param element contains the declaration of a web application's servlet context initialization parameters. There are two special kinds of initialization parameters for the optional cases where the parameter is used to obtain the JNDI name of an EJB or a data source for a subsequent look up. These are indicated by an context-param element together with an accompanying ejb-ref or resource-ref element with matching name.
theName
The name of the configuration parameter.

热门栏目