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 <root>/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.
<web-app>
   <error-page>
      <error-code>404</error-code>
      <location>/404</location>
   </error-page>
</web-app>

.