| Free tutorials for Java, Eclipse and Web programming |
JSF is based on the following configuration files:
web.xml - General web application configuration file
faces-config.xml - Contains the configuration of the JSF application.
JSF requires the central configuration list "web.xml" in the directory WEB-INF of the application. This is similar to other web-applications which are based on servlets.
You must specify in "web.xml" that a "FacesServlet" is responsible for handling JSF applications. "FacesServlet" is the central controller for the JSF application. "FacesServlet" receives all requests for the JSF application and initializes the JSF components before the JSP is displayed.