@Override public void init(ServletConfig config) throws ServletException { super.init(config); getLog() .debug( this.getClass().getName() + " has been deprecated. Use " + super.getClass().getName() + " instead."); }
@Override protected void doRequest(HttpServletRequest req, HttpServletResponse res) throws IOException { long runtime = System.currentTimeMillis(); super.doRequest(req, res); if (req.getAttribute("close_comment") == null) { Date cur_time = Calendar.getInstance(req.getLocale()).getTime(); PrintWriter pw = res.getWriter(); pw.print("\r\n<!-- Generated by CoderRoad.COM ("); pw.print(cur_time); pw.print(") "); pw.print(cur_time.getTime() - runtime); pw.print("ms -->"); } }