阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004

科目:OCE

100 Assume the custom tag my:errorProne always throws a java.lang.RuntimeException with the message "File not found." An error page has been configured for this JSP page. Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism, and outputs the message "File not found" in the response?
(A) <c:try catch="ex"><my:errorProne /></c:try>${ex.message}
(B) <c:catch var="ex"><my:errorProne /></c:catch>${ex.message}
(C) <c:try><my:errorProne /></c:try><c:catch var= "ex" />$ {ex.message}
(D) <c :try><my:errorProne /><c:catch var= "ex" />${ex.message}</c :try>
(E) <my:errorProne><c:catch var= "ex">${ex.message}</c:catch></my:errorProne>
正確答案:登入後查看