Hi! Regarding exception generated by JspServlet when it is invoked via RequestDispatcer.include() and the requested JSP page does not exist.
As seen from the stacktrace in bug 57019 [1], it generates a ServletException. The relevant place in the code is JspServlet.handleMissingResource(). In chapter 9.3 "The Include Method" of Servlet Specification 3.1 there is the following requirement: [quote] If the default servlet is the target of a RequestDispatch.include() and the requested resource does not exist, then the default servlet MUST throw FileNotFoundException. [/quote] Would it make sense for JspServlet to throw a FileNotFoundException as well, instead of a ServletException? [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=57019#c0 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
