Modifying web.xml
For the Tomcat server, you associate error codes with the location of custom error pages in Brightspot’s web.xml
file. (See Interface HttpServletResponse for a listing of possible Tomcat error codes.)
The following example shows a custom page setup for error code 404.
- Open the file
/src/main/webapp/WEB-INF/web.xml
. - Under the root
<web-app>
element, define<error-page>
elements where the<error-code>
child element corresponds to a Tomcat error code, and the<location>
child element corresponds to a page URL defined in Brightspot.
<web-app>
<error-page>
<error-code>404</error-code>
<location>/404</location>
</error-page>
</web-app>
Previous Topic
Error pages
Next Topic
Creating a custom error page