String contextPath = (String)request.getAttribute(
"javax.servlet.include.context_path");
JSPhandler jh = getHandler(getServletConfig(),
contextPath, getClass().getClassLoader());
String jarName = null;
String servletPath = request.getServletPath();
if ((servletPath != null) &&
(servletPath.equals("/JSPupdate"))) {
jarName = request.getParameter("jarName");
String remoteLocation = request.getParameter(
"remoteLocation");
jh.logprint("JSPservlet.service INFO update(" +
jarName + ", " + remoteLocation + ")");
if (jarName == null)
response.getWriter().println(jarName +
" not set!");
else
jh.update(jarName, remoteLocation);
return;
}