Answers for J2EE Online Test | Mock Test
←Go Back to Online Practice TestQues. How can a Servlet call a JSP error page? |
Option 1. This capability is not supported. |
Option 2. When the servlet throws the exception, it will automatically be caught by the calling JSP page. |
Option 3. The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". |
Option 4. The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie. |
Ans. Option 3 |
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website. |
Enter Reason |
Is it helpful?
Yes
No