no message
authorfh <fh>
Wed, 5 Sep 2001 12:49:04 +0000 (12:49 +0000)
committerfh <fh>
Wed, 5 Sep 2001 12:49:04 +0000 (12:49 +0000)
source/mircoders/servlet/ServletModuleLinksImcs.java
templates-dist/de/linksimcs.template

index c5803e7..27b5524 100755 (executable)
@@ -50,21 +50,23 @@ public class ServletModuleLinksImcs extends ServletModule
   public void add(HttpServletRequest req, HttpServletResponse res)
     throws ServletModuleException {
     try {
-      SimpleHash mergeData = new SimpleHash();
+      SimpleHash modelRoot = new SimpleHash();
       EntityList   theList;
       int offset = 0;
+
       theList = mainModule.getByWhereClause("", offset);
-      mergeData.put("contentlist",HTMLTemplateProcessor.makeSimpleHash(theList));
-      mergeData.put("new", "1");
+      modelRoot.put("new", "1");
+      modelRoot.put("contentlist",HTMLTemplateProcessor.makeSimpleHash(theList));
+      //modelRoot.put("contentlist", DatabaseLinksImcs.getInstance().getHashData());
       PrintWriter out = res.getWriter();
 
       if (theList == null || theList.getCount() == 0 || theList.getCount()>1){
         //HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateObjektString, theList, out);
-        HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateObjektString, mergeData, out);
+        HTMLTemplateProcessor.process(getLanguage(req)+"/"+templateObjektString, modelRoot, out);
 
       } else {
         //deliver(req, res, theList.elementAt(0), templateObjektString);
-        deliver(req, res, mergeData, templateObjektString);
+        deliver(req, res, modelRoot, templateObjektString);
       }
 
     } catch(ModuleException e) {
index a14dd47..e5e854f 100755 (executable)
@@ -30,7 +30,7 @@
                <option value="0" selected> Neuen Oberbegriff anlegen
                <list contentlist as entry>
                        
-                       <option value="${entry.id}"> ???
+                       <option value="${entry.id}"> ${entry.title}
                        
                </list>
                </select>