For any input or output operation, a data mapping error will cause a severe error message to be issued. For blocked output, if one or more of the records in the block contains data mapping errors and the file is closed before reaching the end of the block, a severe error message is issued and a system dump is created.
When an error occurs during execution of a web application, you can have the application display a specific error screen according to the type of error. In particular, you can specify a mapping between the status code returned in an HTTP response or a Java programming language exception returned by any web component (see Handling Servlet Errors) and any type of error screen.
To set up error mappings using NetBeans IDE, do the following:
Open the project if you haven’t already.
Expand the project’s node in the Projects pane.
Expand the Web Pages node and then the WEB-INF node.
Double-click web.xml.
Click Pages at the top of the editor pane.
Expand the Error Pages node.
Click Add.
In the Add Error Page dialog:
Click Browse to locate the page that you want to act as the error page.
Enter the HTTP status code that will cause the error page to be opened in the Error Code field.
Enter the exception that will cause the error page to load in the Exception Type field.
Click OK.
Alternatively, you can click XML at the top of the editor pane and enter the error page mapping by hand using the following elements:
An exception-type element specifying either the exception or the HTTP status code that will cause the error page to be opened.
A location element that specifies the name of a web resource to be invoked when the status code or exception is returned. The name should have a leading forward slash (/).
An error-page element that encloses the previous two elements.
You can have multiple error-page elements in your deployment descriptor. Each one of the elements identifies a different error that causes an error page to open. This error page can be the same for any number of error-page elements.
This may help you,
Rachel Gomez