private ServletModuleBreaking() {
- theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("ServletModule.Breaking.Logfile"));
- templateListString = Configuration.getProperty("ServletModule.Breaking.ListTemplate");
- templateObjektString = Configuration.getProperty("ServletModule.Breaking.ObjektTemplate");
- templateConfirmString = Configuration.getProperty("ServletModule.Breaking.ConfirmTemplate");
+ theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("ServletModule.Breaking.Logfile"));
+ templateListString = MirConfig.getProp("ServletModule.Breaking.ListTemplate");
+ templateObjektString = MirConfig.getProp("ServletModule.Breaking.ObjektTemplate");
+ templateConfirmString = MirConfig.getProp("ServletModule.Breaking.ConfirmTemplate");
try {
- theLog.printDebugInfo("---- trying to get dbb");
DatabaseBreaking dbb = DatabaseBreaking.getInstance();
- theLog.printDebugInfo("---- got dbb");
mainModule = new ModuleBreaking(dbb);
- theLog.printDebugInfo("---- got mod");
}
catch (StorageObjectException e) {
theLog.printDebugInfo("ServletModuleBreaking konnte nicht initialisiert werden");
if (offset==null || offset.equals("")) offset="0";
mergeData.put("offset",offset);
EntityList theList = mainModule.getByWhereClause(null, "webdb_create desc", (new Integer(offset)).intValue());
- mergeData.put("contentlist",HTMLTemplateProcessor.makeSimpleList(theList));
+ mergeData.put("contentlist",theList);
if(theList.getOrder()!=null) {
mergeData.put("order", theList.getOrder());
mergeData.put("order_encoded", URLEncoder.encode(theList.getOrder()));
mergeData.put("prev", (new Integer(theList.getPrevBatch())).toString());
// raus damit
- HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateListString, mergeData, res.getWriter());
+ HTMLTemplateProcessor.process(res,getLanguage(req)+"/"+templateListString, mergeData, res.getWriter());
}
catch (ModuleException e) {throw new ServletModuleException(e.toString());}
catch (IOException e) {throw new ServletModuleException(e.toString());}