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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.