How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) 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". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.

(c)

Showing Answers 1 - 1 of 1 Answers

mahender

  • Feb 3rd, 2006
 

ans is B,when exception thrown with the sevlet , container will see with in the web.xml for error-page element,if it is match with excption type then looks for value of element and display that error page.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions