A web module is the smallest deployable unit of web resources in a J2EE application. It corresponds to a "servlet context" as defined in the J2EE specification. A web module is usually packaged and deployed as a web archive file, abbreviated as WAR, although a web module does not always have to be packaged in order to be deployed. Web module is a J2EE term that roughly corresponds to the term "web application" used in the JavaServer Pages 1.2 Specification and Java Servlet 2.3 Specification.
A web module must contain a deployment descriptor.
A web module can contain:
A web module, when mounted in the IDE, corresponds to a filesystem. In other
words, the root of a web module must be the same as the root of a filesystem.
The web module must be mounted at its root directory. If mounted correctly,
the WEB-INF
directory will display the
web module icon. If mounted incorrectly, the web module will not execute.
![]() |
To execute or debug JSP pages and servlets in the IDE, you need to put them into a web module. This behavior differs from earlier versions of the IDE. |
See Also | |
---|---|
Web Module Groups Developing Web Modules The Deployment Descriptor Editing Web Module Deployment Properties Custom Tag Libraries JavaServer Pages Technology Servlets |