//Initialize global variables public void init() throws ServletException { String PRefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j"); // if the log4j-init-file is not set, then no point in trying System.out.println("................log4j start"); if(file != null) { PropertyConfigurator.configure(prefix+file); } } //Process the HTTP Get request public void doGet(HttpServletRequest request, HttpServletResponse response) {
} //Clean up resources public void destroy() { } }