X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fservlet%2FServletModuleContent.java;h=27a58066cd43fc0fccedfcb23e245339ba26cf23;hb=9065f22c307993d6dd19be86aafcef915f52f36d;hp=85de290b0328e506e0dba950830d924b87085c4a;hpb=fa58a8a8c88c4c23cc537258818abbd8569c093b;p=mir.git diff --git a/source/mircoders/servlet/ServletModuleContent.java b/source/mircoders/servlet/ServletModuleContent.java index 85de290b..27a58066 100755 --- a/source/mircoders/servlet/ServletModuleContent.java +++ b/source/mircoders/servlet/ServletModuleContent.java @@ -46,7 +46,7 @@ public class ServletModuleContent extends ServletModule private ServletModuleContent() { try { - theLog = Logfile.getInstance(this.getClass().getName()); + theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("ServletModule.Content.Logfile")); templateListString = MirConfig.getProp("ServletModule.Content.ListTemplate"); templateOpString = MirConfig.getProp("ServletModule.Content.OpTemplate"); templateObjektString = MirConfig.getProp("ServletModule.Content.ObjektTemplate"); @@ -147,7 +147,11 @@ public class ServletModuleContent extends ServletModule mergeData.put("is_published", "1"); String now = StringUtil.date2webdbDate(new GregorianCalendar()); mergeData.put("date", new SimpleScalar(now)); + try { mergeData.put("themenPopupData", themenModule.getTopicsAsSimpleList()); + } catch (ModuleException e) { + theLog.printError("themenPopupData could not be fetched."); + } try { mergeData.put("articletypePopupData", DatabaseArticleType.getInstance().getPopupData()); } catch (Exception e) { @@ -158,7 +162,11 @@ public class ServletModuleContent extends ServletModule } catch (Exception e) { theLog.printError("language-popup could not be fetched."); } + try { mergeData.put("schwerpunktPopupData", schwerpunktModule.getSchwerpunktAsSimpleList()); + } catch (ModuleException e) { + theLog.printError("schwerpunktPopupData could not be fetched."); + } mergeData.put("login_user", user); deliver(req, res, mergeData, templateObjektString); } @@ -264,6 +272,10 @@ public class ServletModuleContent extends ServletModule catch(ModuleException e) { theLog.printError("smod content :: attach :: could not get entityContent"); } + catch(StorageObjectException e) { + theLog.printError("smod content :: attach :: could not get entityContent"); + } + _showObject(idParam, req, res); } @@ -281,6 +293,10 @@ public class ServletModuleContent extends ServletModule catch(ModuleException e) { theLog.printError("smod content :: dettach :: could not get entityContent"); } + catch(StorageObjectException e) { + theLog.printError("smod content :: dettach :: could not get entityContent"); + } + _showObject(cidParam, req, res); } @@ -295,6 +311,10 @@ public class ServletModuleContent extends ServletModule catch(ModuleException e) { theLog.printError("smod content :: newswire :: could not get entityContent"); } + catch(StorageObjectException e) { + theLog.printError("smod content :: dettach :: could not get entityContent"); + } + list(req, res); } @@ -468,7 +488,7 @@ public class ServletModuleContent extends ServletModule * can we make getIdasInt() or can we just have * another getId() that returns an Int and the VM * will handle it transparantly? -mh - */ + */ try { mediaHandlerName = mediaType.getValue("classname"); mediaHandlerClass = Class.forName("mir.media.MediaHandler"+mediaHandlerName);