In this section we create a JSF page to output the catalogBean
Spring bean's (Catalog.java
JavaBean) properties. We demonstrate the effect of the aspect Spring bean catalogAOPBean
on the catalogBean
Spring bean's properties' values. Select File | New. In the New wizard select Web | JSP and click on Next. Select the WebContent folder under SpringJSF, specify catalog.jsp
as File name, and click on Next. Select New JavaServer Faces (JSF) Page (html) as JSP Template. Click on Finish, as follows:
A JSP, catalog.jsp,
gets added to the SpringJSF
project. In the catalog.jsp
output the values for the catalogBean
properties using the h:outputText
element. catalog.jsp
is listed as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" version="2.0"> <jsp:output omit-xml-declaration="true" doctype-root-element="HTML" doctype-system="http...