The exception-type element specifies an exception type and is used to handle exceptions generated from a servlet. Which element of the deployment descriptor includes the exception-type as a sub-element. Select the one correct answer.
-
error-page
-
servlet
-
exception
-
error-handling
A
Correct answer
Explanation
The exception-type element is used within the error-page element to specify which Java exception should trigger the error handling. When that exception is thrown, the container redirects to the specified location. The servlet element (option B) contains servlet configuration, not error handling. Elements named exception or error-handling (options C, D) are not standard deployment descriptor elements.