Managing Welcome Pages, Error Pages, and
Response Status Codes
You can add, remove, or edit a particular entry in the Welcome Files, Error Pages, or Response Codes list.
The displayed tabs and fields correspond to the following tags in web-j2ee-engine.xml:
<!ELEMENT welcome-file-list (welcome-file+)>
<!ELEMENT welcome-file (#PCDATA)>
<!ELEMENT error-page ((error-code | exception-type), location)>
<!ELEMENT error-code (#PCDATA)>
<!ELEMENT exception-type (#PCDATA)>
<!ELEMENT location (#PCDATA)>
<!ELEMENT response-status (code, description)>
<!ELEMENT code (#PCDATA)>
<!ELEMENT description (#PCDATA)>
To manage the welcome pages choose Pages → Welcome Pages.
If You Want To |
Then |
Add a new welcome file |
1. Choose Add and in the displayed dialog box enter the name of the new welcome file. 2. Choose OK. |
Modify a welcome file |
... 1. Choose the welcome file you want to edit from the left-hand side of the tab.
2.
Choose Edit. 3. In displayed dialog box enter the new name of the welcome file. 4. Choose OK. |
Remove a welcome file |
... Select the welcome file you want to remove from the left-hand side of the screen and choose Remove. |
To manage the error pages choose Pages → Error Pages.
Then |
|
Add a new error file |
...
1.
In Location, enter the
path of the error file you want to add.
2.
Select the type of the error
page from the Type drop-down menu. a. error-code – this is an HTTP code. b. exception-type – this is the class name of Java exception type. 3. In Value, enter the error-code or exception type value. 4. Choose Add. |
Modify the settings for an error file |
... 1. Select an existing error file from the Error Pages list on the left-hand side of the tab.
2.
Change the
information. 3. Choose Modify. |
Remove an error file |
... Select an existing error file from the Error Pages list and choose Remove. |
To manage the response codes choose Pages → Response Status.
If You Want To |
Then |
Add a new response code |
... 1. Enter a new response code value in Code.
Check the requirements and not permitted values in the Permissible values for response code frame. 2. Enter a response code message in Description. 3. Choose Add. |
Modify a response code |
... 1. Select an existing response code from the Response Codes list on the left-hand side of the tab. 2. Change the Description message. 3. Choose Modify. |
Remove a response code |
... Select the response code you want to remove from the Response Codes and choose Remove. |