Show TOC

Changing the Look and Feel of the Default Error PagesLocate this document in the navigation structure

Use

The user interface of the error pages is represented by an HTML file that takes all required information from a default properties file. To specify your custom look and feel of the default error pages, you have to provide a new properties file, for example your_file.properties , and replace the existing one.

Recommendation

Edit the default properties file and save it with a different name. Change the values of the keys, save the new file, and replace the default one. To do that you have to edit the ErrorPageTemplateLocation property using SAP NetWeaver Administrator and provide the location of the file with the new look and feel.

Figure 1: Replacing the default properties file with a custom one
Procedure

Implementing a new properties file to replace the existing one

Open the original property file errorPageFragments.properties in \usr\sap\<sid>\<instanceid>\j2ee\cluster\bin\services\http\lib\private and save it using a different name. This file contains key value pairs. To change the user interface, you have to edit only the corresponding values.

Caution

Do not delete any keys. If you do not want to use any of the key value pairs, leave the value empty without removing the key.

Replacing the existing properties file with a custom one

After implementing your own properties file, you have to replace the existing one.

  1. Open the SAP NetWeaver Administrator.

  2. Choose Start of the navigation path Configuration Management Next navigation step Infrastructure Next navigation step Java System Properties End of the navigation path. Specify the template in the Templates section.

  3. Choose the Services tab in the Details section.

  4. Choose the HTTP Provider service.

  5. Select the ErrorPageTemplateLocation property in the Extended Details section. Choose Modify .

  6. Specify the location of the file that contains the new user interface. Choose Set and then Save .