As stated in Chapter 2, web artifacts are packaged with several deployment descriptors into a web module called a WAR file. The WAR file is then packaged into an EAR. This section describes the structure of the web deployment descriptors and the structure of a WAR file.
The main deployment descriptor in a web module is the web.xml file. The web.xml file contains many settings. Code Snippet 6-5 shows the shell of web.xml. Much like the application.xml file in the EAR file, it contains the standard headers. The <web-app> tags are the parent tags of the web.xml file.
?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, ...