nerdexam
Oracle

1Z0-899 · Question #131

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 correct answer is D. Message: <b>${pageContext.exception.message}</b>. See the full explanation below for the reasoning.

Question

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?

Options

  • AMessage: <b>${exception.message}</b>
  • BMessage: <b>${exception.errorMessage}</b>
  • CMessage: <b>${request.exception.message}</b>
  • DMessage: <b>${pageContext.exception.message}</b>
  • EMessage: <b>${request.exception.errorMessage}</b>
  • FMessage: <b>${pageContext.exception.errorMessage}</b>

How the community answered

(22 responses)
  • A
    14% (3)
  • C
    9% (2)
  • D
    73% (16)
  • F
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice