276 CHAPTER 6: Component-Based Web Development Using JSF 2
Listing 6-4. web.xml
- <web-app ..... >
helloWorldJSF
- ...
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
/faces/*
Faces Servlet
*.faces
State saving method: 'client' or 'server' (=default). See JSF Specification
2.5.2
javax.faces.STATE_SAVING_METHOD
client
javax.servlet.jsp.jstl.fmt.localizationContext
resources.application
com.sun.faces.config.ConfigureListener
Lines 11 to 14: The servlet-mapping element makes certain that all URLs with
the prefix /faces are processed by FacesServlet.
Lines 15 to 18: The servlet-mapping element makes certain that all URLs ending
with the faces extension are processed by FacesServlet.
Figure 6-13 shows the directory structure of the Hello World web application.