🎴 Flashcard Mode
Java Web Application Security and Input Validation
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Following list shows entries in the web.xml deployment descriptor for Exception & Error Handling. Please identify which one is correct a. java.lang.Throwable /error.jsp b. 500 /error.jsp c. /error.jsp
AnswerClick to flip back
A
a AND b
💡 Explanation:
Option A handles all exceptions via Throwable to redirect to error.jsp. Option B catches HTTP 500 errors to redirect to the same page. Both are valid error-page configurations in web.xml. Option C is invalid because an error-page must specify either exception-type or error-code.