Name

<error-page>

Synopsis

<!ELEMENT error-page ((error-code | exception-type), location)>

Description

The <error-page> element contains a mapping between an error code or exception type and the path of a resource in the web application.

<error-page>
    <error-code>400</error-code>
    <location>/400.html</location>
</error-page>

Get Java Servlet Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.