session-tracking over get-param, if browser does not allow cookies.
[mir.git] / source / mircoders / servlet / ServletModuleLinksImcs.java
index 27b5524..761d8fb 100755 (executable)
@@ -54,18 +54,14 @@ public class ServletModuleLinksImcs extends ServletModule
       EntityList   theList;
       int offset = 0;
 
-      theList = mainModule.getByWhereClause("", offset);
+      theList = mainModule.getByWhereClause("to_parent_id=NULL", offset);
       modelRoot.put("new", "1");
-      modelRoot.put("contentlist",HTMLTemplateProcessor.makeSimpleHash(theList));
-      //modelRoot.put("contentlist", DatabaseLinksImcs.getInstance().getHashData());
-      PrintWriter out = res.getWriter();
+      modelRoot.put("contentlist",HTMLTemplateProcessor.makeSimpleList(theList));
 
       if (theList == null || theList.getCount() == 0 || theList.getCount()>1){
-        //HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateObjektString, theList, out);
-        HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateObjektString, modelRoot, out);
+        HTMLTemplateProcessor.process(res,getLanguage(req)+"/"+templateObjektString, modelRoot, res.getWriter());
 
       } else {
-        //deliver(req, res, theList.elementAt(0), templateObjektString);
         deliver(req, res, modelRoot, templateObjektString);
       }