JSF Framework architecture

In JSF application JavaBean classes are act as a model and contains data and business logic. Commonly a JSP or Facelets (XHTML) page is used for view. JSF components are used to bind the view and model. FacesServlet act as a controller and use component tree to do all task like get request, gathering, validating and converting user input, put it into model objects, action invocation and render response.

Entry of FacesServlet in web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"