Creating JSF and managed beans

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 ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.