Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic