We will now create a JSF page to display courses in the CourseManagementWeb project. We will also create a managed bean that will call the getCourses method of CourseEJB. See the Java Server Faces section in Chapter 2, Creating a Simple JEE Web Application, for details about JSF.
As explained in Chapter 2, Creating a Simple JEE Web Application, we need to add JSF Servlet and mapping to web.xml. Open web.xml from the CourseManagementWeb project. You can open this file either by double-clicking the Deployment Descriptor: CourseManagementWeb node (under the project in Project Explorer) or from the WebContent/Web-INF folder (again, under the project in Project Explorer). Add the following servlet declaration and ...