Thanks John, I have done that. I think, my question was not clear. In Weblogic, you could set the following tags: <jsp-descriptor> <jsp-param> <param-name>debug</param-name> <param-value>true</param-value> </jsp-param> </jsp-descriptor> 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" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] > > 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" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]