Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 40593 invoked from network); 29 Jan 2003 13:29:12 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jan 2003 13:29:12 -0000 Received: (qmail 16241 invoked by uid 97); 29 Jan 2003 13:30:37 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 16234 invoked from network); 29 Jan 2003 13:30:36 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jan 2003 13:30:36 -0000 Received: (qmail 38872 invoked by uid 500); 29 Jan 2003 13:28:48 -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 38857 invoked from network); 29 Jan 2003 13:28:48 -0000 Received: from sid.armstrong.com (204.74.20.252) by daedalus.apache.org with SMTP; 29 Jan 2003 13:28:48 -0000 Received: from joedog.org (fnord.armstrong.com [204.74.20.11]) by sid.armstrong.com (8.12.6/8.12.6) with ESMTP id h0TDSEbH006739 for ; Wed, 29 Jan 2003 08:28:14 -0500 Message-ID: <3E37D70F.1020903@joedog.org> Date: Wed, 29 Jan 2003 08:28:47 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How do I get the line number in a JSP ..... References: <83F0258A9996D311B14200A0C98F173602F22D5B@aas-internet.aas.com> <006f01c2c798$d57d24a0$e6e5d30c@attbi.com> In-Reply-To: <006f01c2c798$d57d24a0$e6e5d30c@attbi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tomcat cannot do this at this point. It would be an enhancment to Jasper. Patches are greatly welcome to implement this. -Tim Nandyal wrote: > Thanks John, I have done that. I think, my question was not clear. In > Weblogic, you could set the following tags: > > > debug > true > > > in web.xml file to get the line number of the exception directly from the > .jsp file. Is there something similar to this in tomcat by which I can get > the line number? > > Thanks > Nandyal > > > > ----- Original Message ----- > From: "Turner, John" > To: "'Tomcat Users List'" > Sent: Wednesday, January 29, 2003 6:17 AM > Subject: RE: How do I get the line number in a JSP ..... > > > >>Go to Tomcat's work directory. Drill down within that directory until you >>find that java file. All JSPs are converted to .java files, then compiled >>into servlets by Tomcat (or rather, Jasper). Open up the java file in an >>editor, go to that line number. >> >>John >> >> >> >>>-----Original Message----- >>>From: Nandyal [mailto:m_nandyal@attbi.com] >>>Sent: Wednesday, January 29, 2003 7:37 AM >>>To: Tomcat Users List >>>Subject: Re: How do I get the line number in a JSP ..... >>> >>> >>>Is there something that I need to add to web.xml file so that >>>I could get >>>the line number of a JSP when an exception gets thrown? >>> >>>Currently, when a NullPointerException is thrown, it gives me >>>only the line >>>number in the translated .java file. >>> >>>Nandyal >>> >>>----- Original Message ----- >>>From: "Nandyal" >>>To: >>>Sent: Tuesday, January 28, 2003 9:33 PM >>>Subject: How do I get the line number in a JSP ..... >>> >>> >>>Gurus, >>> How do I get the line number in a JSP, when an exception occurs? >>>Currently, the stack trace prints >>>NullPointerException and says Unkown source. >>> >>>Any help would be highly appreciated. >>> >>>Thanks >>>Sesha >>> >>> >>> >>>--------------------------------------------------------------------- >>>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 >> >> > > > > --------------------------------------------------------------------- > 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