wood burning stoves 2.0*
The moose likes Servlets and the fly likes Writing to log files from jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Writing to log files from jsp page" Watch "Writing to log files from jsp page" New topic

Writing to log files from jsp page

Drepe Trooper

Joined: Jun 06, 2001
Posts: 5
Hi all,
How do you use the GenericServlet.log method from within a jsp page? I would like to send messages to the log file for debugging. I know how to use the ServletContext.log method but was curious about this other log method.
Please help. Thanks.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
All logs lead to Rome... um I mean the server's log file. Both of the log methods do the same thing. The easiest way to log things in a JSP is application.log().
I agree. Here's the link: http://aspose.com/file-tools
subject: Writing to log files from jsp page
Similar Threads
set the custom tag variable
stop() method of applet cant post to jsp ?
Tomcat System.out from a Thread
How to forward values from a excel to a JSP page?
jsp page reloading