Setting WEB-INF Properties
See Also
The WEB-INF
directory of a web module contains:
- The
web.xml
deployment descriptor for the web module
- The
classes
directory for servlet and utility classes used
by the web module
- The
lib
directory for JAR
files containing servlets,
beans, tag libraries, JDBC drivers, and other utility classes used by the
web module.
You set properties for the web module using the WEB-INF
property
sheet. WEB-INF
properties appear on four tabbed panes:
The Properties pane contains the following properties:
- Content Language. This
property refers to the output format of the JSP page response. Typically,
content language is text/html because the response is meant for a web browser.
Other possible values include text/xml, if the JSP page returns an xml document,
or text/plain if the JSP page returns a plain text document.
- Context Root. The context root is a name mapped to the document root
of a web module. The context root typically corresponds to the base of the
web server's URL namespace. To specify a context root, type a name in the
Context Root field, or click the ellipses (...) to display the Context Root
property editor.
- Name. Specifies the name of the directory, that is,
WEB-INF
.
- Template. Indicates whether or not the current object is a template.
This property is of limited use in developing web modules and need not be
set explicitly.
- Web Module Group. A web module group is one or more web modules deployed
together on a web server or an application server. Use this property to specify
the web module group of which this web module is a part. To specify, type
the pathname for the web module group in the Web Module Group field, or click
the ellipses (...) to display the Web Module Group property editor.
The Sorting pane contains the following properties:
- Sort Mode. Specifies the sort order of the items contained in a web
module directory.
On the Archive pane, you can set the following properties:
- Extra files. Use the Extra files property editor to add any file
external to the web module to the WAR package. Files can be added from any
filesystem mounted in the Explorer.
- Filter. Use the Filter property editor to specify a filter for file
inclusion. Possible choices include all files, all files except
*.java, and all files except *.java, *form, and *.jar. Alternatively,
you can specify a regular expression such as *.txt or Pro*,
where * denotes a pattern that can be repeated 0 or more times, but with no
pattern before it. You can use either the predefined filter or your own regular
expression, but not both. Note that this property is unrelated to the filter
object in the Servlet 2.3 specification.
The Execution pane contains the following properties:
- Executor. Sets the Executor for the web module. This property is
pre-set for web module development and need not be modified.
- Debugger. Sets the Debugger for the web module. This property is
pre-set for web module development and need not be modified.
- Target Server. Sets the target server for an individual web module.
Specifying a target server is optional. If no target server is specified,
the default server from the server registry is used. Note that if a component
of a web module is executed while the web module is executing as part of a
web module group, then the web module executes within the server specified
by the Target Server property for the web module group. To specify a target
server, click the Target Server property to activate the value field, then
click the ellipses (...) to display the Target Server property editor.
Legal Notices