Easy Logging from a JSP Page

Posted Easy Logging from a JSP Page

Recently I was debugging an issue in a Java Server Page (JSP) and I wanted to track the logic path.  I didn't want to add the overhead of logging to the JSP.  Logging involves adding logging such as Log4J and then checking the log files. I wanted something much simpler like the alerts you use for debugging purposes from time to time in JavaScript. Except JSP is server side code so alert boxes or any other kind of boxes are out of the question.

out To the Rescue

To solve my problem I used the out instance in the JSP instance to send HTML comments to the page.

To read the rest of this article visit:

http://www.codematterings.com/programmer/easy-logging-from-a-jsp-page

Comments

Popular posts from this blog

Putting Files on the Rackspace File Cloud

Setting Up XnaMobileUnit to run unit tests in Windows Phone 7 XNA Games

Reasons to Stay Away from CSLA