Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 75150 invoked from network); 20 Feb 2004 20:50:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Feb 2004 20:50:04 -0000 Received: (qmail 20474 invoked by uid 500); 20 Feb 2004 20:49:32 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 20461 invoked by uid 500); 20 Feb 2004 20:49:32 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 20447 invoked from network); 20 Feb 2004 20:49:32 -0000 Received: from unknown (HELO smtp-auth1.radiant.net) (66.163.205.65) by daedalus.apache.org with SMTP; 20 Feb 2004 20:49:32 -0000 Received: (qmail 9836 invoked from network); 20 Feb 2004 20:42:44 -0000 Received: from unknown (HELO p0061) (64.141.49.18) by smtp-auth1.radiant.net with SMTP; 20 Feb 2004 20:42:44 -0000 From: "Yansheng Lin" To: "'Tomcat Users List'" Subject: RE: Tomcat and checked vs. unchecked exceptions Date: Fri, 20 Feb 2004 13:49:36 -0700 Keywords: Tomcat User Organization: Silvacom Ltd. Message-ID: <002501c3f7f3$0da470a0$7202a8c0@stbedm.silvacom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <9C5166762F311146951505C6790A9CF8013DFD6C@US-VS1.corp.mpi.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Not trying to be smart or anything here, but you might want to take a look at declarative exception handling in Struts. it's new in 1.1. That way, you have more control over exceptions in your action class. Just a suggestion:). -----Original Message----- From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] Sent: Friday, February 20, 2004 10:07 AM To: Tomcat Users List Subject: RE: Tomcat and checked vs. unchecked exceptions Howdy, >Apparently it changes a checked exception into an unchecked one. I'm not >sure what that means to me, except that try as I might, I can't catch >this in Tomcat and present a nice error page: > > > javax.servlet.ServletException > /exceptions/Exception.jsp > > > java.io.IOException > /exceptions/Exception.jsp > > > >com.lowagie.text.ExceptionConverter > /exceptions/Exception.jsp > Try java.lang.RuntimeException, as that's the superclass for unchecked exceptions and you probably want to handle them all the same (if you want to handle them at all, which apparently you do). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org