Java web applications consist of compiled Java classes, XML configuration files, static resources, and other artifacts. To enable Facelets in our JSF application, we must configure our
web.xml file with a few context parameters, which are used by the Facelets framework.
Mapping the FacesServlet
FacesServlet is the front controller of the JSF application. Incoming requests are mapped to this servlet using different URI patterns. Although it is possible to map any arbitrary prefix and/or file extension to the
FacesServlet, for simplicity, we have chosen to use the
.jsf file extension for both the FacesServlet mapping pattern and for our Facelets XHTML documents.
The following ...