+ //setting some data which are needed often
+ //should be done a bit smarter
+ setLoginLanguages(getServletContext());
+ ServletContext context = getServletContext();
+ TopicService topicService =
+ new TopicService((SessionFactory)context
+ .getAttribute(ServletConstants.SESSION_FACTORY));
+ LanguageService languageService =
+ new LanguageService((SessionFactory)context
+ .getAttribute(ServletConstants.SESSION_FACTORY));
+ ArticleTypeService articleTypeService =
+ new ArticleTypeService((SessionFactory)context
+ .getAttribute(ServletConstants.SESSION_FACTORY));
+ context.setAttribute(ServletConstants.TOPICS, topicService.list());
+ context.setAttribute(ServletConstants.LANGUAGES, languageService.list());
+ context.setAttribute(ServletConstants.ARTICLE_TYPES, articleTypeService.list());
+