Modifying the web.xml file – HP Integrity NonStop J-Series User Manual

Page 261

Advertising
background image

Figure 80 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:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
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">
<display-name>

Overview of SkinSelector

261

Advertising
This manual is related to the following products: