Got rid of AbstractEntity.java / deprecated Entity.getValues() and HTMLTemplateProces...
[mir.git] / source / mircoders / servlet / ServletModuleUsers.java
index 35fcbb9..0f2457f 100755 (executable)
@@ -50,9 +50,7 @@ public class ServletModuleUsers extends mir.servlet.ServletModule
                String        idParam = req.getParameter("id");
                if (idParam == null) throw new ServletModuleException("Falscher Aufruf: (id) nicht angegeben");
                 try {
-                       //theLog.printInfo("Showing User with id: " + idParam);
-                       SimpleHash mergeData =  HTMLTemplateProcessor.makeSimpleHash(mainModule.getById(idParam));
-                       deliver(req, res, mergeData, templateObjektString);
+                       deliver(req, res, mainModule.getById(idParam), templateObjektString);
                }
                catch (ModuleException e) { throw new ServletModuleException(e.toString());}
        }
@@ -74,8 +72,7 @@ public class ServletModuleUsers extends mir.servlet.ServletModule
                try {
                        HashMap withValues = getIntersectingValues(req, mainModule.getStorageObject());
                        String id = mainModule.add(withValues);
-                       SimpleHash mergeData = HTMLTemplateProcessor.makeSimpleHash(mainModule.getById(id));
-                       deliver(req, res, mergeData, templateObjektString);
+                       deliver(req, res, mainModule.getById(id), templateObjektString);
                }
                catch (Exception e) { throw new ServletModuleException(e.toString());}
        }