Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 15653 invoked from network); 2 Nov 2000 19:58:14 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 2 Nov 2000 19:58:14 -0000 Received: from taller.eng.sun.com ([129.144.250.34]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA28878 for ; Thu, 2 Nov 2000 11:58:12 -0800 (PST) Received: from eng.sun.com (florence [129.144.251.146]) by taller.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id LAA02525 for ; Thu, 2 Nov 2000 11:58:10 -0800 (PST) Message-ID: <3A01C7A0.2099E264@eng.sun.com> Date: Thu, 02 Nov 2000 11:59:28 -0800 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: Hello? Anybody? References: <764CA2FF49EC054BA086FC8253A52DD74331FF@merc09.us.sas.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Larry Isaacs wrote: > Clarification to text below: > > To support this behavior, should the spec require that for a JSP that is > "included" or "forwarded", handlePageException() is required to propagate > the exception back to the caller if there is no error page specified > ? > How about the case where a top-level JSP page calls PageContext.handlePageException() with something like a NullPointerException? It would seem that, even here, you would want to be consistent with the way a RequestDispatcher works (or a top-level servlet that throws an exception), and throw this exception on to the container. We'll see what the expert group has to say. Craig > > -----Original Message----- > From: Larry Isaacs [mailto:Larry.Isaacs@sas.com] > Sent: Thursday, November 02, 2000 2:35 PM > To: 'tomcat-dev@jakarta.apache.org' > Subject: RE: Hello? Anybody? > > Thanks Craig, > > To support this behavior, should the spec require that for a JSP that is > "included" or "forwarded", handlePageException() is required to propagate > the exception back to the caller? Currently, it just says that if there is > no error page, it should "perform some implementation dependent action." > Was the "implementation dependent action" intended only for the original, > i.e. non-"included" and non-"forwarded", servlet or JSP? > > Larry > > -----Original Message----- > From: Craig R. McClanahan [mailto:Craig.McClanahan@eng.sun.com] > Sent: Thursday, November 02, 2000 1:28 PM > To: tomcat-dev@jakarta.apache.org > Subject: Re: Hello? Anybody? > > Ethan Wallwork wrote: > > > Since the spec implies that exceptions should be thrown from a > > RequestDispatcher call rather than handled, and there seems to be nothing in > > the spec that forbids this behavior, I would like to see it implemented this > > way. Does anyone know of any reasons it shouldn't be done this way? > > > > My understanding of the spec is that a ServletException or IOException that is > thrown by a servlet included (or forwarded to) by a RequestDispatcher should be > propogated up to the calling servlet. Any other exception (like > IllegalStateException, NullPointerException, etc.) that the included/forwarded > servlet throws should be wrapped in a ServletException, and that exception should > be thrown. This is the way 4.0 works. > > If 3.2 doesn't do this, IMHO that is a bug. > > > > > -- > > Ethan > > > > Craig McClanahan > > [snip] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org