You are creating an error page that provides a user-friendly screen whenever a server exception
occurs. You want to hide the stack trace, but you do want to provide the exception’s error
message to the user so the user can provide it to the customer service agent at your company.
Which EL code snippet inserts this error message into the error page?
A.
Message: <b>${exception.message}</b>
B.
Message: <b>${exception.errorMessage}</b>
C.
Message: <b>${request.exception.message}</b>
D.
Message: <b>${pageContext.exception.message}</b>
E.
Message: <b>${request.exception.errorMessage}</b>
F.
Message: <b>${pageContext.exception.errorMessage}</b>
Explanation:
D: exception is a jsp implicit object available only if the error handler page is marked with a directive page which has iserrorpage attribute set to true.
exception is not an EL implicit object, so to retrieve it you must use pagecontext implicit object