Share on Google+Share on Google+

Structure of Web Module

In this section, you will learn the structure of the 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


Posted on: November 30, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Structure of Web Module  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image