Index: lams_tool_forum/conf/xdoclet/filter-mappings.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/conf/xdoclet/filter-mappings.xml,v
diff -u -r1.2 -r1.3
--- lams_tool_forum/conf/xdoclet/filter-mappings.xml 8 Dec 2005 03:04:46 -0000 1.2
+++ lams_tool_forum/conf/xdoclet/filter-mappings.xml 14 Feb 2006 23:26:49 -0000 1.3
@@ -5,4 +5,8 @@
SystemSessionFilter
/*
+
+
+ LocaleFilter
+ /*
\ No newline at end of file
Index: lams_tool_forum/conf/xdoclet/filters.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/conf/xdoclet/filters.xml,v
diff -u -r1.1 -r1.2
--- lams_tool_forum/conf/xdoclet/filters.xml 24 Oct 2005 07:23:15 -0000 1.1
+++ lams_tool_forum/conf/xdoclet/filters.xml 14 Feb 2006 23:26:49 -0000 1.2
@@ -17,3 +17,9 @@
+
+ LocaleFilter
+
+ org.lamsfoundation.lams.web.filter.LocaleFilter
+
+
\ No newline at end of file
Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml,v
diff -u -r1.2 -r1.3
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml 19 Jan 2006 03:49:37 -0000 1.2
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml 14 Feb 2006 23:26:49 -0000 1.3
@@ -1,7 +1,12 @@
-
+
+ org.lamsfoundation.lams.tool.forum.web.ApplicationResources
+
+
+
+
@@ -92,6 +97,7 @@
+
Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java,v
diff -u -r1.38 -r1.39
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 7 Feb 2006 23:07:52 -0000 1.38
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 14 Feb 2006 23:26:48 -0000 1.39
@@ -54,6 +54,8 @@
import org.lamsfoundation.lams.tool.forum.util.ForumToolContentHandler;
import org.lamsfoundation.lams.tool.forum.util.TopicComparator;
import org.lamsfoundation.lams.tool.service.ILamsToolService;
+import org.lamsfoundation.lams.util.MessageService;
+import org.springframework.context.support.MessageSourceAccessor;
/**
*
@@ -75,7 +77,14 @@
private ForumToolContentHandler forumToolContentHandler;
private IRepositoryService repositoryService;
private ILearnerService learnerService;
-
+ private MessageService messageService;
+ //---------------------------------------------------------------------
+ // Inversion of Control Methods - Method injection
+ //---------------------------------------------------------------------
+ public void setMessageService(MessageService messageService) {
+ this.messageService = messageService;
+ }
+
public Forum updateForum(Forum forum) throws PersistenceException {
forumDao.saveOrUpdate(forum);
return forum;
@@ -86,6 +95,9 @@
}
public Forum getForumByContentId(Long contentID) throws PersistenceException {
+// String str = messageService.getMessage("label.authoring.heading.basic");
+// System.out.println(str);
+
Forum forum = (Forum) forumDao.getByContentId(contentID);
if(forum == null){
log.error("Could not find the content by given ID:"+contentID);