+ public void update(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletModuleExc
+ {
+ try {
+ HTTPRequestParser requestParser = new HTTPRequestParser(aRequest);
+
+ String returnUrl = requestParser.getParameter("returnurl");
+
+ String idParam = aRequest.getParameter("id");
+ if (idParam == null)
+ throw new ServletModuleExc("Wrong call: (id) is missing");
+
+ Map withValues = getIntersectingValues(aRequest, DatabaseComment.getInstance());
+
+ String content_id = aRequest.getParameter("id");
+
+ if (!withValues.containsKey("is_published"))
+ withValues.put("is_published","0");
+ if (!withValues.containsKey("is_html"))
+ withValues.put("is_html","0");
+
+ String webdbCreate = (String) withValues.get("webdb_create");
+ if (webdbCreate==null || webdbCreate.trim().length()==0)
+ withValues.remove("webdb_create");
+
+ String id = mainModule.set(withValues);
+
+ logAdminUsage(aRequest, id, "object modified");
+
+ if (returnUrl!=null){
+ redirect(aResponse, returnUrl);
+ }
+ else
+ editObject(aRequest, aResponse, idParam);
+ }
+ catch (Throwable e) {
+ throw new ServletModuleFailure(e);
+ }
+ }
+}
\ No newline at end of file