Man, this feels like telling someone how to shoot their foot off, but this would be shorter:
new Exception().printStackTrace(); Larry On 10/25/05, Steve Stearns <[EMAIL PROTECTED]> wrote: > > Charles P. Killmer wrote: > > >I have a bunch of JSP files that all instantiate a single class file. > >Is there a way for the class file to log which file called it and > >ideally from which line the call was made? > > > There might be a better way to do this but off the top of my head I > should think this would work if you added it to your JSP pages: > > <% > try { > throw new RuntimeException("Log call"); > } > catch (RuntimeException e) { > e.printStackTrace(); > } > %> > > ---Steve > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >