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 93298 invoked from network); 1 Nov 2000 16:58:44 -0000 Received: from unknown (HELO nxedge.net-linx.com) (208.38.2.17) by locus.apache.org with SMTP; 1 Nov 2000 16:58:44 -0000 Received: from [208.38.2.10] (HELO ethanw) by nxedge.net-linx.com (CommuniGate Pro SMTP 3.3) with SMTP id 480168 for tomcat-dev@jakarta.apache.org; Wed, 01 Nov 2000 09:58:13 -0700 From: "Ethan Wallwork" To: Subject: Hello? Anybody? Date: Wed, 1 Nov 2000 09:58:24 -0700 Message-ID: <002f01c04424$f2ad50d0$d5a0a8c0@ethanw.pre-print.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 In-Reply-To: <003501c04297$24a32360$d5a0a8c0@ethanw.pre-print.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Can someone PLEASE respond on this? Even if only to tell me I have no idea what I'm talking about? I really would like to find out what the proper behaviour for Tomcat in this situation is. Thank you, Ethan -----Original Message----- From: Ethan Wallwork [mailto:ethan.wallwork@net-linx.com] Sent: Monday, October 30, 2000 10:31 AM To: tomcat-dev@jakarta.apache.org Subject: RE: BugRat Report #213 has been filed. Has anyone looked at this? It is a real problem for us, and if others agree it should be changed I will get started on a fix. -- Ethan -----Original Message----- From: BugRat Mail System [mailto:tomcat-bugs@cortexity.com] Sent: Wednesday, October 04, 2000 2:13 PM To: tomcat-bugs@cortexity.com Subject: BugRat Report #213 has been filed. Bug report #213 has just been filed. You can view the report at the following URL: REPORT #213 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: serious Confidence: public Environment: Release: 3.1, 3.2 JVM Release: any Operating System: any OS Release: any Platform: any Synopsis: RequestDispatcher does not propagate errors Description: If a servlet uses a RequestDispatcher to forward or include a second servlet (or JSP), and the second servlet throws and exception from it's service method, that exception is not propagated to the first servlet. This is a problem if you have a setup (like ours) where a single "master" servlet includes a particular JSP depending on thing other than just the request URI, and you want it to be able to handle the errors. As it is, the error gets handled by Tomcat (using default error page, or whatever error page you've configured in the JSP or web.xml file) and the main servlet never knows anything went wrong. In Tomcat 3.2, the RequestDispatcher forward/include methods call the Handler service method. This service method never throws an exception. In Tomcat 3.1 it calls the ServletWrapper handleRequest method, which also never throws and exception. The reason I think exceptions should be propagated is because of section 8.5 of the servlet spec, which strongly implies it: 8.5 ERROR HANDLING Only runtime exceptions and checked exceptions of type ServletException or IOException should be propagated to the calling servlet if thrown by the target of a request dispatcher. All other exceptions should be wrapped as a ServletException and the root cause of the exception set to the original exception. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org