blob: 6c4640fb70fbe12e1f25c8bbdd93b34c925cf4cf [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Adding or removing an error page from a Web application</title>
</head>
<body id="twedrmerr"><a name="twedrmerr"><!-- --></a>
<h1 class="topictitle1">Adding or removing an error page from a Web application</h1>
<div><div class="skipspace">Error pages are pages that you configure to display in response to
specific HTTP error codes. To add or remove an error page from a Web application,
you must add or remove the error page from the web.xml file. To do this using
the Web deployment descriptor editor, complete the following steps:<p></p>
</div>
<ol><li><span>Open the Web perspective and display the Project Explorer.</span></li>
<li><span>Expand your project and double click on the Deployment Descriptor
icon. The Web deployment descriptor window appears.</span></li>
<li><span>Select the <b>Pages</b> tab, and in the Error Pages section, select
the <b>Add</b> button to add an error file. To remove an error file, select
the file and then select the <b>Remove</b> button.</span></li>
</ol>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="ccwebxml.html" title="">The Web deployment descriptor editor</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="twedtwbx.html" title="">Configuring Web applications using the Web deployment descriptor editor</a><br />
</p>
</div>
</body>
</html>