From: mh Date: Fri, 29 Mar 2002 19:43:48 +0000 (+0000) Subject: get rid of deprecated methods and new popup stuff X-Git-Tag: prexmlproducerconfig~189 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=9587b59f31b1bf1d44557b1834f527af9c6a394e;p=mir.git get rid of deprecated methods and new popup stuff --- diff --git a/source/mircoders/servlet/ServletModuleContent.java b/source/mircoders/servlet/ServletModuleContent.java index 461f0cef..ddc4d7ee 100755 --- a/source/mircoders/servlet/ServletModuleContent.java +++ b/source/mircoders/servlet/ServletModuleContent.java @@ -368,48 +368,31 @@ public class ServletModuleContent extends ServletModule private void _showObject(String id, HttpServletRequest req, HttpServletResponse res) throws ServletModuleException { + SimpleHash extraInfo = new SimpleHash(); try { EntityContent entContent=(EntityContent)mainModule.getById(id); - SimpleHash mergeData = HTMLTemplateProcessor.makeSimpleHash(entContent); - EntityList topicToContent = DatabaseContentToTopics.getInstance().getTopics(entContent); - if (topicToContent!=null && topicToContent.size()>0){ - theLog.printDebugInfo("topicanzahl: "+topicToContent.size()); - Entity topics = null; - SimpleList topicList = new SimpleList(); - for(int i=0;i=1) { - mergeData.put("to_media", currentMedia); - } - - mergeData.put("schwerpunktPopupData", schwerpunktModule.getSchwerpunktAsSimpleList()); + extraInfo.put("schwerpunktPopupData", schwerpunktModule.getSchwerpunktAsSimpleList()); // hier code um zur liste zurueckzukommen String offsetParam, whereParam, orderParam; - if ((offsetParam = req.getParameter("offset"))!=null) mergeData.put("offset", offsetParam); - if ((whereParam = req.getParameter("where"))!=null) mergeData.put("where", whereParam); - if ((orderParam = req.getParameter("order"))!=null) mergeData.put("order", orderParam); - mergeData.put("login_user", _getUser(req)); - deliver(req, res, mergeData, templateObjektString); + if ((offsetParam = req.getParameter("offset"))!=null) extraInfo.put("offset", offsetParam); + if ((whereParam = req.getParameter("where"))!=null) extraInfo.put("where", whereParam); + if ((orderParam = req.getParameter("order"))!=null) extraInfo.put("order", orderParam); + extraInfo.put("login_user", _getUser(req)); + deliver(req, res, entContent, extraInfo, templateObjektString); } catch (Exception e) { throw new ServletModuleException(e.toString()); }