File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Customer Requirements for Developers this week in the Jobs Discussion 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:
subject: Writing to log files from jsp page
It's not a secret anymore!