Modifying the web.xml file – HP Integrity NonStop J-Series User Manual
Page 159
Figure 59 New JavaServer Page: JSP Template Dialog Box
5.
Delete the default code present in the index.jsp file.
6.
Add a redirection tag for faces-enabled page customize.jsp.
NOTE:
The
Creating the customize.jsp File
section describes how to create the
customize.jsp
file.
The index.jsp file appears as follows:
<% response.sendRedirect("customize.faces"); %>
Modifying the web.xml File
To modify the web.xml file, you must set the dispatcher servlet and its mapping, using the following
steps:
1.
Double-click the SkinSelector/WebContent/WEB-INF/web.xml file in the Project
Explorer frame to open it.
NOTE:
By default, XML files open in the XML Editor. The XML Editor has two views: Design
and Source view. Select the Source view.
The template for the default web.xml file generated during project creation is:
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">
Getting Started with MyFaces
159