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.
Properties
- Name. (Read-Only) Specifies the name of the directory, that is,
WEB-INF
.
- Context Path. The context path is a name mapped to the document base
of a web module. The context path typically corresponds to the base of the
web server's URL namespace. To specify a context path, type a name in the
Context Path field, or click the ellipses button (...) to display the Context
Path property editor.
Sorting
- Sort Mode. Specifies the sort order of the items contained in a web
module directory.
Archive
- Filter. Use the Filter property editor to specify a filter for file
inclusion in a WAR file. 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 specification.
- Extra files. Use the Extra Files property editor to add any file
external to the web module to the WAR file. Files can be added from any filesystem
mounted in the Filesystems window.
Legal Notices