beautypg.com

HP Integrity NonStop H-Series User Manual

Page 260

background image


xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

SkinSelector


index.html
index.htm
index.jsp
default.html
default.htm
default.jsp

2.

Set the

index.jsp

file as the

<welcome-file>

by deleting other files from the

.

3.

Set the class for the Faces Controller servlet of the SkinSelector application by adding the
following information in the

tag:


Faces Servlet
javax.faces.webapp.FacesServlet
1

4.

Specify the URL pattern as

*.faces

in the

tag as shown below:


Faces Servlet
*.faces

NOTE:

This servlet definition maps to the URL patterns. Any URL with the

.faces

extension will be routed to the Faces servlet (the Faces Controller servlet).

After modification, the

web.xml

file appears as:


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">



Faces Servlet

javax.faces.webapp.FacesServlet

1


Faces Servlet
*.faces


index.jsp

260

Getting Started with MyFaces

This manual is related to the following products: