This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Logging in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Logging in JSP" Watch "Logging in JSP" New topic
Author

Logging in JSP

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
I need to debug my JSP , so how can i use Log4j inside JSP??


If you want something you never had do something which you had never done
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

If there's Java code in the JSP, the best step is to move it out to a page controller or bean. You shouldn't need to do any logging from a JSP.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Logging in JSP
 
Similar Threads
write javascript function in java ?
open excel file
how to set up a navigaeting tree according to the database records?
View the images as four per row instead of long row that is never ending
passing Enumeration as an Attribute from servlet to jsp