GIAC
GSSP-JAVA · Question #134
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app> <error-page> <exception-type>java.lang.Throwable</exception-type> <location> Error.jsp…
The correct answer is C. Any exception other than RefreshFailedException will display the Error.jsp page. See the full explanation below for the reasoning.
Question
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app> <error-page> <exception-type>java.lang.Throwable</exception-type> <location> Error.jsp </location> </error-page> <error-page> <exception-type> javax.security.auth.RefreshFailedException</exception- type> <location> RefreshFailed.jsp </location> </error-page> </web-app> Which of the following statements is true about the deployment descriptor code given above?
Options
- AIt is not possible to declare two error-page code in the web-app element.
- BThe error-page element does not belong to the web-app element.
- CAny exception other than RefreshFailedException will display the Error.jsp page.
- DAll exceptions will display the Error.jsp page.
How the community answered
(47 responses)- A11% (5)
- B4% (2)
- C83% (39)
- D2% (1)
Community Discussion
No community discussion yet for this question.