In this section we will discuss the following:
Creating JSF pages to create and retrieve a catalog entry in an Oracle database table that we created earlier
Adding Trinidad components in the JSF pages instead of adding the standard JSF components
Value binding the Trinidad components to managed bean properties
Access Oracle database from the managed bean
Select File | New | Other. In the New wizard select JSP File under Web and click on Next. Select the WebContent
folder, and specify create.jsp as File name. Click on Next. Select the default New JavaServer Faces (JSF) Page (html) template and click on Finish. Similarly add the find.jsp JSF page to find a catalog entry, catalogentry.jsp to display a catalog entry, and error.jsp to be used when an error is generated. The directory structure of the TrinidadEclipse application is shown, as follows: