![]() |
![]() |
||||
This tag is used inside an <error-page> tag, to specify the page to send users to if the specified error occurs.
The page must be specified relative to the application root, and must always start with a leading '/'.
Example:
<!-- Define an error handler for 404 pages, which directs users to the page /error404.jsp --> <error-page> <error-code>404</error-code> <location>/error404.jsp</location> </error-page>