beautypg.com

Creating the faces-config.xml file – HP Integrity NonStop H-Series User Manual

Page 459

background image

Creating the

faces-config.xml

File

This file contains configuration details for the MyFaces implementation.

To create the

faces-config.xml

file, complete the following steps

1.

Create the

faces-config.xml

file in the

EmpInfo/WebContent/WEB-INF

directory as

explained in the

Creating the

EmpInfo-servlet.xml

File

section in the

Getting Started

with Spring

chapter.

2.

Modify the

faces-config.xml

file to include information about message bundle, backing

bean, and navigation rules.

After modification, the

faces-config.xml

file must appear as shown:

"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >



en

com.hp.empinfo.web.message


EmpBean

com.hp.empinfo.web.EmpBean

session


/pages/insert.jsp

success
/pages/success.jsp


failure
/pages/insert.jsp


home
/pages/welcome.jsp


/pages/welcome.jsp

insert
/pages/insert.jsp


update
/pages/empUpdate.jsp

Example of Integrating MyFaces into Spring

459

This manual is related to the following products: