2017年11月30日 星期四

QUESTION 68

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?


A. Add a page directive stating that this page is an error handler
B. Add scriptlet code to create a variable that refer to the exception
C. Add a <jsp:useBean tag to declare the and access the exception>
D. Perform the error handling in a servlet rather than in the JSP
E. Edit the page that caused the error to ensure that it specifies this page as its error handler

Correct Answer: A

沒有留言:

張貼留言