beautypg.com

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

Page 302

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

section.

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

302 Integrating Frameworks

This manual is related to the following products: