Oracle
1Z0-899 · Question #159
1Z0-899 Question #159: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #159. The question stem and answer options stay visible for context.
Question
You are working on a JSP that is intended to inform users about critical errors in the system. The JSP code is attempting to access the exception that represents the cause of the problem, but your IDE is telling you that the variable does not exist. What should you do to address this problem?
Options
- AAdd a page directive stating that this page is an error handler
- BAdd scriptlet code to create a variable that refer to the exception
- CAdd a <jsp:useBean tag to declare the and access the exception>
- DPerform the error handling in a servlet rather than in the JSP
- EEdit the page that caused the error to ensure that it specifies this page as its error handler
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.