When working with JSP, we saw that it is not a good idea to mix scriplets with the HTML markup. We solved this problem by using JavaBean. Java Server Faces takes this design further, and in addition to supporting JavaBeans, it provides built-in tags for HTML user controls, which are context aware, can perform validation, and can preserve the state between requests. We will now create the login application using JSF.
LoginJSFApp. In the last page of the wizard, make sure that you check the Generate web.xml deployment descriptor box.