14.7. Error Pages

You can specify a custom error page to use with your JSPs just as you can in ColdFusion. In order to use an error page in ColdFusion, you need to specify its name in the <cferror> tag in the application.cfm file, like this:

<cferror type="request" template = "myRequestErrorPage.cfm"> 

On this page you can then use certain built-in ColdFusion error objects; for instance, you can reference ERROR.diagnostics in order to output information about the bad request.

It seems we are starting to see a number of ways in which the application.cfm file can be thought of as similiar to the web.xml file. It contains startup and initialization parameters and controls what happens in the application.

Anyway, in JSP, you can tell the application ...

Get Java™ for ColdFusion® Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.