BBjJettyContextConfiguration::setErrorPageURI
Description
In BBj 19.01 and higher, this method sets the error page for the given error code to the given URI path.
Syntax
Return Value | Method |
---|---|
void | setErrorPageURI(String errorCode, String uri) |
Parameters
Parameter | Description |
---|---|
errorCode | The error code. |
uri | 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 error pages can also be set in Enterprise Manger in the HTTP Error Pages settings, found by selecting Web >
Context Configuration.
Example
Version History
See Also
BBjJettyContextConfiguration::getDefaultErrorPage
BBjJettyContextConfiguration::getErrorPages
BBjJettyContextConfiguration::getErrorPageURI
BBjJettyContextConfiguration::setDefaultErrorPage
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.