Beruflich Dokumente
Kultur Dokumente
THEMATIC UNIT I:
Introduction to Web Applications
ndice
2 Configuration files
2/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
Introduction
A Web application exists as a structured hierarchy of
directories.
The root of this hierarchy serves as the document root for files
that are part of the application.
Example
For a Web application with the context path /catalog in a Web
container, the index.html file at the base of the Web application
hierarchy
Context Path
Since the context path of an application determines the URL
namespace of the contents of the Web application, Web containers
must reject Web applications defining a context path that could
cause potential conflicts in this URL namespace.
3/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
Introduction
3/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
WEB-INF Directory
webapps/
exampleapp/
index.jsp
contact.html
images/
photo.jpg
graphic.png
META-INF/
WEB-INF/
web.xml
classes/
SampleServlet.class
lib/
struts.jar
tags/
Figure 7-1: Directory structure
5/7for a sample Web application
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
ndice
2 Configuration files
Configuration files
6/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
7/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano
Structure of a Web Application Configuration files
7/7
THEMATIC UNIT I: Introduction to Web Applications Hermes Francisco Montes Casiano