Structure of Web Module

In this section, you will learn the structure of the web module.

Structure of Web Module

Structure of Web Module

In this section, you will learn the structure of the web module.

In Java EE, web components and static files (for example images) are known as web resources. These web resource are putting under a deployable architecture. This smallest deployable unit is called web module.

A web module is related to a web application. A web module has a fixed structure. In the web module architecture,  the top most directory is known as application document root. The document root directory contains the XHTML files, client side scripting files(ex. Java Script, JQuery files etc) and static files such as images.

The document root directory contains the WEB-INF directory, which can have given below files and directories :

  • classes(directory) :  This directory contains the server side class files such as Servlets etc.

  • tags(directory) : This directory contains the tag files which is the implementations of tag libraries

  • lib(directory) : This directory contains the jar files for external libraries used in the application.

  • web.xml(files) : This xml file is the deployment descriptor file for the  web application.

The given below graphical view of web module will give you a clear idea :

Figure : web module