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");
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) {
} 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);
}
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);
}
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);
}
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);
}
* 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);