e.printStackTrace(System.err);
}
} else {
- response.getWriter().println(data);
+ write(data);
}
}
} catch (IOException e) {
}
public void service(HttpServletRequest request,
- HttpServletResponse response)
+ HttpServletResponse response,
+ String contextPath)
throws ServletException
{
this.request=request;
this.response=response;
- String servletPath=request.getServletPath();
- String contextPath=getServletContext().getRealPath(servletPath);
-
send(request.getMethod(), request.getQueryString(),
request.getRequestURI(), contextPath,
request.getContentType(), request.getContentLength(),
}
}
+ public void service(HttpServletRequest request,
+ HttpServletResponse response)
+ throws ServletException
+ {
+ String servletPath=request.getServletPath();
+ String contextPath=getServletContext().getRealPath(servletPath);
+ service(request, response, contextPath);
+ }
+
public void destroy() {
if (0 == --startup_count) shutdown();
super.destroy();