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