Which of these is a correct fragment within the web-app element of deployment descriptor? Select the one correct answer

Which of these is a correct fragment within the web-app element of deployment descriptor? Select the one correct answer 



a. <exception> <exception-type> mypackage.MyException</exception-type> <location> /error.jsp</location> </exception>
b. <error-page> <exception-type> mypackage.MyException</exception-type> <location> /error.jsp</location> </error-page>
c. <error-page> <exception> mypackage.MyException </exception-type> <location> /error.jsp </location> </error-page>
d. <error-page> <exception-type> mypackage.MyException</exception-type> </error-page>
e. <error-page> <servlet-name> myservlet</servlet-name> <exception-type> mypackage.MyException</exception-type> </error-page>
f. <exception> <servlet-name> myservlet</servlet-name> <exception-type> mypackage.MyException</exception-type> </exception>




Answer: B


Learn More :