HTML and CSS Reference
In-Depth Information
Figure 1-6.
The firstApplication Maven structure
Configuration Files
There are two configuration files for the
firstApplication
, which are the
web.xml
and
faces-config.xml
. The
web.xml
file is the standard web module deployment descriptor in which the
Faces Servlet
is defined. The main purpose of
the
Faces Servlet
is to intercept the requests to the JSF pages in order to prepare the JSF context before accessing the
requested JSF page. Listing 1-1 shows the
web.xml
file of the
firstApplication
.
Listing 1-1.
The web.xml of the firstApplication
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="
http://java.sun.com/xml/ns/javaee
"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
version="3.0">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
