Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing to log files from jsp page

 
Drepe Trooper
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Drepe
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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().
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!