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());}
}
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());}
}