A Faces servlet
In JSF, FacesServlet acts as the front controller, is the conduit for all the requests, and also sends the response back to the client. This servlet is a subclass of javax.servlet.Servlet
.
A web browser client sends an HTTP request to the servlet container. If it is a Faces request, then the servlet container invokes the service()
method of FacesServlet. The method hands over the processing of the request to a member instance javax.faces.lifecycle.LifeCycle
object. The method also creates a FacesContext instance. The LifeCycle
instance is responsible for the processing of a request to all of the JSF phases described in Chapter 2, JavaServer Faces Lifecycle and the rendering of the response.
Reconfiguration of the resource paths
It is possible to change the path name of the resource lookup and contract folders as well by configuring the web XML deployment descriptor. The constants are defined in the javax.faces.application.ResourceHandler
class. The WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME...