Blame SOURCES/web-app_2_2.dtd

fd6af7
fd6af7
 Licensed to the Apache Software Foundation (ASF) under one or more
fd6af7
  contributor license agreements.  See the NOTICE file distributed with
fd6af7
  this work for additional information regarding copyright ownership.
fd6af7
  The ASF licenses this file to You under the Apache License, Version 2.0
fd6af7
  (the "License"); you may not use this file except in compliance with
fd6af7
  the License.  You may obtain a copy of the License at
fd6af7
fd6af7
      http://www.apache.org/licenses/LICENSE-2.0
fd6af7
fd6af7
  Unless required by applicable law or agreed to in writing, software
fd6af7
  distributed under the License is distributed on an "AS IS" BASIS,
fd6af7
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fd6af7
  See the License for the specific language governing permissions and
fd6af7
  limitations under the License.
fd6af7
-->
fd6af7
fd6af7
fd6af7
The web-app element is the root of the deployment descriptor for
fd6af7
a web application
fd6af7
-->
fd6af7
fd6af7
fd6af7
context-param*, servlet*, servlet-mapping*, session-config?,
fd6af7
mime-mapping*, welcome-file-list?, error-page*, taglib*,
fd6af7
resource-ref*, security-constraint*, login-config?, security-role*,
fd6af7
env-entry*, ejb-ref*)>
fd6af7
fd6af7
fd6af7
The icon element contains a small-icon and a large-icon element
fd6af7
which specify the location within the web application for a small and
fd6af7
large image used to represent the web application in a GUI tool. At a
fd6af7
minimum, tools must accept GIF and JPEG format images.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The small-icon element contains the location within the web
fd6af7
application of a file containing a small (16x16 pixel) icon image.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The large-icon element contains the location within the web
fd6af7
application of a file containing a large (32x32 pixel) icon image.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The display-name element contains a short name that is intended
fd6af7
to be displayed by GUI tools
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The description element is used to provide descriptive text about
fd6af7
the parent element.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The distributable element, by its presence in a web application
fd6af7
deployment descriptor, indicates that this web application is
fd6af7
programmed appropriately to be deployed into a distributed servlet
fd6af7
container
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The context-param element contains the declaration of a web
fd6af7
application's servlet context initialization parameters.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The param-name element contains the name of a parameter.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The param-value element contains the value of a parameter.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The servlet element contains the declarative data of a
fd6af7
servlet. If a jsp-file is specified and the load-on-startup element is
fd6af7
present, then the JSP should be pre-compiled and loaded.
fd6af7
-->
fd6af7
fd6af7
fd6af7
(servlet-class|jsp-file), init-param*, load-on-startup?, security-role-ref*)>
fd6af7
fd6af7
fd6af7
The servlet-name element contains the canonical name of the
fd6af7
servlet.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The servlet-class element contains the fully qualified class name
fd6af7
of the servlet.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The jsp-file element contains the full path to a JSP file within
fd6af7
the web application.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The init-param element contains a name/value pair as an
fd6af7
initialization param of the servlet
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The load-on-startup element indicates that this servlet should be
fd6af7
loaded on the start-up of the web application. The optional contents of
fd6af7
these element must be a positive integer indicating the order in which
fd6af7
the servlet should be loaded. Lower integers are loaded before higher
fd6af7
integers. If no value is specified, or if the value specified is not a
fd6af7
positive integer, the container is free to load it at any time in the
fd6af7
startup sequence.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The servlet-mapping element defines a mapping between a servlet
fd6af7
and a url pattern
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The url-pattern element contains the url pattern of the
fd6af7
mapping. Must follow the rules specified in Section 10 of the Servlet
fd6af7
API Specification.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The session-config element defines the session parameters for
fd6af7
this web application.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The session-timeout element defines the default session timeout
fd6af7
interval for all sessions created in this web application. The
fd6af7
specified timeout must be expressed in a whole number of minutes.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The mime-mapping element defines a mapping between an extension
fd6af7
and a mime type.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The extension element contains a string describing an
fd6af7
extension. example: "txt"
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The mime-type element contains a defined mime type. example:
fd6af7
"text/plain"
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The welcome-file-list contains an ordered list of welcome files
fd6af7
elements.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The welcome-file element contains file name to use as a default
fd6af7
welcome file, such as index.html
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The taglib element is used to describe a JSP tag library.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The taglib-uri element describes a URI, relative to the location
fd6af7
of the web.xml document, identifying a Tag Library used in the Web
fd6af7
Application.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
the taglib-location element contains the location (as a resource
fd6af7
relative to the root of the web application) where to find the Tag
fd6af7
Libary Description file for the tag library.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The error-page element contains a mapping between an error code
fd6af7
or exception type to the path of a resource in the web application
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The error-code contains an HTTP error code, ex: 404
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The exception type contains a fully qualified class name of a
fd6af7
Java exception type.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The location element contains the location of the resource in the
fd6af7
web application
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The resource-ref element contains a declaration of a Web
fd6af7
Application's reference to an external resource.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The res-ref-name element specifies the name of the resource
fd6af7
factory reference name.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The res-type element specifies the (Java class) type of the data
fd6af7
source.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The res-auth element indicates whether the application component
fd6af7
code performs resource signon programmatically or whether the
fd6af7
container signs onto the resource based on the principle mapping
fd6af7
information supplied by the deployer. Must be CONTAINER or SERVLET
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The security-constraint element is used to associate security
fd6af7
constraints with one or more web resource collections
fd6af7
-->
fd6af7
fd6af7
fd6af7
auth-constraint?, user-data-constraint?)>
fd6af7
fd6af7
fd6af7
The web-resource-collection element is used to identify a subset
fd6af7
of the resources and HTTP methods on those resources within a web
fd6af7
application to which a security constraint applies. If no HTTP methods
fd6af7
are specified, then the security constraint applies to all HTTP
fd6af7
methods.
fd6af7
-->
fd6af7
fd6af7
fd6af7
url-pattern*, http-method*)>
fd6af7
fd6af7
fd6af7
The web-resource-name contains the name of this web resource
fd6af7
collection
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The http-method contains an HTTP method (GET | POST |...)
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The user-data-constraint element is used to indicate how data
fd6af7
communicated between the client and container should be protected
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The transport-guarantee element specifies that the communication
fd6af7
between client and server should be NONE, INTEGRAL, or
fd6af7
CONFIDENTIAL. NONE means that the application does not require any
fd6af7
transport guarantees. A value of INTEGRAL means that the application
fd6af7
requires that the data sent between the client and server be sent in
fd6af7
such a way that it can't be changed in transit. CONFIDENTIAL means
fd6af7
that the application requires that the data be transmitted in a
fd6af7
fashion that prevents other entities from observing the contents of
fd6af7
the transmission. In most cases, the presence of the INTEGRAL or
fd6af7
CONFIDENTIAL flag will indicate that the use of SSL is required.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The auth-constraint element indicates the user roles that should
fd6af7
be permitted access to this resource collection. The role used here
fd6af7
must appear in a security-role-ref element.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The role-name element contains the name of a security role.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The login-config element is used to configure the authentication
fd6af7
method that should be used, the realm name that should be used for
fd6af7
this application, and the attributes that are needed by the form login
fd6af7
mechanism.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The realm name element specifies the realm name to use in HTTP
fd6af7
Basic authorization
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The form-login-config element specifies the login and error pages
fd6af7
that should be used in form based login. If form based authentication
fd6af7
is not used, these elements are ignored.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The form-login-page element defines the location in the web app
fd6af7
where the page that can be used for login can be found
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The form-error-page element defines the location in the web app
fd6af7
where the error page that is displayed when login is not successful
fd6af7
can be found
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The auth-method element is used to configure the authentication
fd6af7
mechanism for the web application. As a prerequisite to gaining access
fd6af7
to any web resources which are protected by an authorization
fd6af7
constraint, a user must have authenticated using the configured
fd6af7
mechanism. Legal values for this element are "BASIC", "DIGEST",
fd6af7
"FORM", or "CLIENT-CERT".
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The security-role element contains the declaration of a security
fd6af7
role which is used in the security-constraints placed on the web
fd6af7
application.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The role-name element contains the name of a role. This element
fd6af7
must contain a non-empty string.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The role-link element is used to link a security role reference
fd6af7
to a defined security role. The role-link element must contain the
fd6af7
name of one of the security roles defined in the security-role
fd6af7
elements.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry element contains the declaration of an
fd6af7
application's environment entry. This element is required to be
fd6af7
honored on in J2EE compliant servlet containers.
fd6af7
-->
fd6af7
fd6af7
fd6af7
env-entry-type)>
fd6af7
fd6af7
fd6af7
The env-entry-name contains the name of an application's
fd6af7
environment entry
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry-value element contains the value of an
fd6af7
application's environment entry
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The env-entry-type element contains the fully qualified Java type
fd6af7
of the environment entry value that is expected by the application
fd6af7
code. The following are the legal values of env-entry-type:
fd6af7
java.lang.Boolean, java.lang.String, java.lang.Integer,
fd6af7
java.lang.Double, java.lang.Float.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-ref element is used to declare a reference to an
fd6af7
enterprise bean. 
fd6af7
-->
fd6af7
fd6af7
fd6af7
ejb-link?)>
fd6af7
fd6af7
fd6af7
The ejb-ref-name element contains the name of an EJB
fd6af7
reference. This is the JNDI name that the servlet code uses to get a
fd6af7
reference to the enterprise bean.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-ref-type element contains the expected java class type of
fd6af7
the referenced EJB.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-home element contains the fully qualified name of the
fd6af7
EJB's home interface
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-remote element contains the fully qualified name of the
fd6af7
EJB's remote interface
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ejb-link element is used in the ejb-ref element to specify
fd6af7
that an EJB reference is linked to an EJB in an encompassing Java2
fd6af7
Enterprise Edition (J2EE) application package. The value of the
fd6af7
ejb-link element must be the ejb-name of and EJB in the J2EE
fd6af7
application package.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
The ID mechanism is to allow tools to easily make tool-specific
fd6af7
references to the elements of the deployment descriptor. This allows
fd6af7
tools that produce additional deployment information (i.e. information
fd6af7
beyond the standard deployment descriptor information) to store the
fd6af7
non-standard information in a separate file, and easily refer from
fd6af7
these tools-specific files to the information in the standard web-app
fd6af7
deployment descriptor.
fd6af7
-->
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7
fd6af7