Media helper to modularize the invocation and getting of handlers. all the reflection...
[mir.git] / source / mircoders / servlet / ServletModuleContent.java
index 053f26c..27a5806 100755 (executable)
@@ -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");
@@ -445,7 +445,7 @@ public class ServletModuleContent extends ServletModule
         SimpleHash modelRoot = HTMLTemplateProcessor.makeSimpleHashWithEntitylistInfos(theList);
         modelRoot.put("articletypeHash", DatabaseArticleType.getInstance().getHashData());
 
-/*    EntityContent       currentContent;
+    EntityContent       currentContent;
     EntityList          upMediaEntityList;
     EntityList          imageEntityList;
     EntityList          currentMediaList;
@@ -488,6 +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);
@@ -530,7 +531,6 @@ public class ServletModuleContent extends ServletModule
           contentHash.put("icon_alt", iconAlt);
         } catch (Exception e){}
       }
-*/
 
 
         deliver(req, res, modelRoot, templateListString);