Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 63815 invoked from network); 29 Jan 2003 15:33:24 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jan 2003 15:33:24 -0000 Received: (qmail 26301 invoked by uid 97); 29 Jan 2003 15:34:50 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 26291 invoked from network); 29 Jan 2003 15:34:50 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jan 2003 15:34:50 -0000 Received: (qmail 54371 invoked by uid 500); 29 Jan 2003 15:29:55 -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 54326 invoked from network); 29 Jan 2003 15:29:54 -0000 Received: from cumeil6.prima.com.ar (HELO cumeils.prima.com.ar) (200.42.0.141) by daedalus.apache.org with SMTP; 29 Jan 2003 15:29:54 -0000 Received: (qmail 90910 invoked from network); 29 Jan 2003 15:29:39 -0000 Received: from unknown (HELO postino5.prima.com.ar) (172.16.1.86) by 172.16.1.136 with SMTP; 29 Jan 2003 15:29:39 -0000 Received: (qmail 5176 invoked from network); 29 Jan 2003 15:29:38 -0000 Received: from 168-226-234-67.speedy.com.ar (HELO wsta02) (168.226.234.67) by postino5.prima.com.ar with SMTP; 29 Jan 2003 15:29:38 -0000 Message-ID: <001501c2c7ab$f770b910$020101c0@wsta02> From: "Jakarta" To: "Tomcat Users List" References: <00f701c2c707$5d6a47e0$020101c0@wsta02> <3E36F2F5.40604@mkodo.com> Subject: Re: Date: Wed, 29 Jan 2003 12:34:51 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks! Looks interesting. I've not tested it yet. BUT i'm using the option in the struts-config.xml to show via some relevant exceptions to the user (and mail them to me --as bugs?--). so who will catch the exceptions? j4l, the strut's ExceptionHandler or both? spying inside the strut's sources i've found the ActionErrors are stored as context's attributes. ergo inside the jsp source i can retrieve them this way ActionErrors e = (ActionErrors) request.getAttribute(ActionErrors.GLOBAL_ERROR); and mail them with a JavaMail session. but it'll be good to trap all other exceptions. i'll test it regards ----- Original Message ----- From: "Jon Wingfield" To: "Tomcat Users List" Sent: Tuesday, January 28, 2003 6:15 PM Subject: Re: > Are you using log4j? If you are then chack out the > org.apache.log4j.net.SMPTAppender. It sends a mail each time a message > of the required severity is logged. > > http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.h tml > > example of log4j.properies portion for this appender: > > log4j.rootCategory=info, mail > > log4j.appender.mail=org.apache.log4j.net.SMTPAppender > log4j.appender.mail.To=sysadmin@your.domain.com > log4j.appender.mail.From=your.webapp@your.domain.com > log4j.appender.mail.SMTPHost=@MAIL_HOST@ > log4j.appender.mail.Threshold=ERROR > log4j.appender.mail.BufferSize=1 > log4j.appender.mail.Subject=Application Error > > > Pablo L. Crivaro wrote: > > hi > > i want access the error list written by the tag usign java, > > not the tag (i wanna submit exceptions by mail automatically). how is that? > > > > > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org