BBjJettyContextConfiguration::setDefaultErrorPage

Description

In BBj 19.01 and higher, this method sets the default error page for the context that will be displayed if an error occurs.

Syntax

Return Value Method
void setDefaultErrorPage(String errorPage)

Parameters

Parameter Description
errorPage The URI path to the error page.

Return Value

None.

Remarks

Changing the error pages for the context require it to be restarted. To do so, use BBjJettyContextController::restart.

The default error page can also be set in Enterprise Manger in the HTTP Error Pages settings, found by selecting Web > Context Configuration.

See Also

BBjAPI

BBjJettyContextConfiguration::getDefaultErrorPage

BBjJettyContextConfiguration::getErrorPages

BBjJettyContextConfiguration::getErrorPageURI

BBjJettyContextConfiguration::setErrorPageURI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.