Brightspot CMS Developer Guide

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.

  1. Open the file /src/main/webapp/WEB-INF/web.xml.
  2. 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.

Previous Topic
Error pages
Next Topic
Creating a custom error page
Was this topic helpful?
Thanks for your feedback.