Show TOC Start of Content Area

Procedure documentation Managing Welcome Pages, Error Pages, and Response Status Codes  Locate the document in its SAP Library structure

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)>

Procedure

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.
This action provides you an option to edit the welcome file name only, not the contents.

       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.

If You Want To

Then

Add a new error file

...

       1.      In Location, enter the path of the error file you want to add.
This is the path of a resource in your web application. It begins from the root directory.

       2.      Select the type of the error page from the Type drop-down menu.
The error page type is mapped to the specified location. There are two choices:

                            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.
You can modify the Location, Type, or Value input information only.

       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.

This graphic is explained in the accompanying text

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.

 

 

End of Content Area