I want to know is there any way to get the name of the JSP page using java . I mean is there any such concept to get the name of the Jsp page as we can get the name of the java class files using java.lang.reflect.*; getClass() method .
I have to make a log file , where any message coming from a JSP page to Tomcat console should be logged , beside the name of the JSP.
Thanx in advance . [ May 19, 2006: Message edited by: Bear Bibeault ]
Originally posted by Paul Sturrock: Or you could just use log4j.
Actually i am working on log4j , but dont have much knowledge about it,can you give me some resources on log4j , besides i need to delete the content of the log file(completely) after every 50 days. The application is running on Tomcat , is there any provision given in log4j for deleting contents of the file, or if there any provision to delete the old file and create a new file with the same name.