Modifying the show-preview.jsp file, Modifying the, Show-preview.jsp – HP Integrity NonStop H-Series User Manual

Page 269: File

Advertising
background image

<TR><TH CLASS="TITLE">Color Error</TH></TR>
</TABLE>
<P>
You chose
"<h:outputText value="#{resumeBean.fgColor}"/>"
as both the foreground and background color.
<P>
<A HREF="customize.faces">try again</A>.
</CENTER></BODY></HTML>
</f:view>

Modifying the

show-preview.jsp

File

To modify the

show-preview.jsp

file, complete the following steps:

1.

Double-click the

show-preview.jsp

file in the Project Explorer frame to open it.

2.

Replace the default content of the

show-preview.jsp

file with the following code:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>
Resume for <h:outputText value="#{resumeBean.name}"/>
</TITLE></HEAD>
<BODY TEXT="<h:outputText value="#{resumeBean.fgColor}"/>"
BGCOLOR="<h:outputText value="#{resumeBean.bgColor}"/>">
<H1 ALIGN="CENTER">
<h:outputText value="#{resumeBean.name}"/><BR>
<SMALL><h:outputText value="#{resumeBean.jobTitle}"/>
</SMALL></H1>
Experienced <h:outputText value="#{resumeBean.jobTitle}"/>
seeks challenging position doing something.
<H2>Employment History</H2>
Employment History
<H2>Education</H2>
Education
<H2>Publications and Awards</H2>
Publication and Awards
</BODY></HTML>
</f:view>

NOTE:

The

same-color.jsp

file and the

show-preview.jsp

file are the resultant JSP

pages. These pages are placed in the

SkinSelector/WebContent/WEB-INF/results

directory to avoid direct access through browser, and can be accessed only through proper
faces mapping.

The project structure of SkinSelector, after following all the steps so far, is as follows:

Figure 13-14

shows the Project Explorer View.

Overview of SkinSelector

269

Advertising
This manual is related to the following products: