WEB-INF Node
See Also
The WEB-INF node
in the Filesystems
window represents the WEB-INF directory that every web module root directory
(document base) must contain. The IDE creates this file for you when you use
the New Web Module wizard or, if necessary, when you use the Convert Filesystem
into Web Module tool.
The WEB-INF directory and its contents are not part of the public
document tree. For example, a client cannot directly access a servlet using
the http://localhost:8080/customers/WEB-INF/classes/newcust URL. Instead
the contents are served up through request to resource mappings that you specify
in the web module's deployment descriptor.
The contents of the WEB-INF directory are:
- The /WEB-INF/web.xml deployment descriptor.
- The /WEB-INF/classes directory for servlet and utility classes.
- The /WEB-INF/lib directory for JAR files containing tag libraries,
servlets, beans, and other utility classes.
- (Optional) Tag library descriptor (TLD) files.
Working With This Node
If you right-click this node and display the contextual menu, you see a list
of menu items that enable you to work with this node. The following list describes
some of these menu items and provides links to topics that explain more.
- Validate All Pages. Validate the syntax in the web
module's JSP files.
- Execute. Deploy the web module to the default server,
if necessary, and execute the web module's welcome file.
- Run in Debugger. Run the web module in debug mode.
- Export WAR File. Create a WAR file using the Archive specifications
from the deployment descriptor's property sheet.
- View WAR Content. Open
the WAR Contents window to see what the the contents of a WAR package would
be for the web module.
- Add JSP Tag Library. Add a tag library from
the filesystem
or from the tag library repository.
Legal Notices