- // producing new page
- new ProducerContent().handle(null, null, true, false, aid);
-
- // sync the server
- int exitValue = Helper.rsync();
- theLog.printDebugInfo("rsync:"+exitValue);
-
- // redirecting to url
- // should implement back to article
- SimpleHash mergeData = new SimpleHash();
- deliver(req, res, mergeData, commentFormDoneTemplate);
+ // inserting into database
+ String id = mainModule.add(withValues);
+
+ // producing new page
+ new ProducerContent().handle(null, null, true, false, aid);
+
+ // sync the server
+ int exitValue = Helper.rsync();
+ theLog.printDebugInfo("rsync:"+exitValue);
+
+ // redirecting to url
+ // should implement back to article
+ SimpleHash mergeData = new SimpleHash();
+ deliver(req, res, mergeData, commentFormDoneTemplate);
+ }