Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/PedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/PedagogicalPlannerAction.java,v diff -u -r1.2 -r1.3 --- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/PedagogicalPlannerAction.java 29 Jan 2009 21:55:02 -0000 1.2 +++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/PedagogicalPlannerAction.java 12 Feb 2011 18:53:55 -0000 1.3 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.chat.web.actions; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -74,33 +72,10 @@ ChatPedagogicalPlannerForm plannerForm = (ChatPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Chat chat = getChatService().getChatByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(chat); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(ChatConstants.SUCCESS); - } else { - try { - String onlineInstructions = chat.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(chat.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - PedagogicalPlannerAction.logger.error(e); - } - return null; - } - + plannerForm.fillForm(chat); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(ChatConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_chat/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_chat/web/pages/authoring/pedagogicalPlannerForm.jsp 6 Oct 2010 10:16:22 -0000 1.6 +++ lams_tool_chat/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:53:55 -0000 1.7 @@ -18,7 +18,7 @@ <%@ include file="/common/messages.jsp"%>

- + Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java,v diff -u -r1.78 -r1.79 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java 25 Nov 2010 09:20:07 -0000 1.78 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java 12 Feb 2011 18:54:32 -0000 1.79 @@ -26,7 +26,6 @@ package org.lamsfoundation.lams.tool.forum.web.actions; import java.io.IOException; -import java.io.PrintWriter; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Date; @@ -1140,33 +1139,11 @@ ForumPedagogicalPlannerForm plannerForm = (ForumPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Forum forum = getForumManager().getForumByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(forum); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward("success"); - } else { - try { - String onlineInstructions = forum.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); + plannerForm.fillForm(forum); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward("success"); - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(forum.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - AuthoringAction.log.error(e); - } - return null; - } - } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_forum/web/jsps/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/jsps/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_forum/web/jsps/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:43:29 -0000 1.9 +++ lams_tool_forum/web/jsps/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:32 -0000 1.10 @@ -74,7 +74,7 @@ <%@ include file="/common/messages.jsp"%> - + Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McPedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McPedagogicalPlannerAction.java,v diff -u -r1.3 -r1.4 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McPedagogicalPlannerAction.java 4 Feb 2009 20:44:12 -0000 1.3 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McPedagogicalPlannerAction.java 12 Feb 2011 18:53:51 -0000 1.4 @@ -25,7 +25,6 @@ package org.lamsfoundation.lams.tool.mc.web; import java.io.IOException; -import java.io.PrintWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -69,33 +68,12 @@ HttpServletResponse response) { McPedagogicalPlannerForm plannerForm = (McPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); - McContent qaContent = getMcService().retrieveMc(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(qaContent, getMcService()); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(McAppConstants.SUCCESS); - } else { - try { - String onlineInstructions = qaContent.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); + McContent mcContent = getMcService().retrieveMc(toolContentID); + plannerForm.fillForm(mcContent, getMcService()); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(McAppConstants.SUCCESS); - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(qaContent.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - McPedagogicalPlannerAction.logger.error(e); - } - return null; - } } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_lamc/web/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.8 -r1.9 --- lams_tool_lamc/web/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:44:08 -0000 1.8 +++ lams_tool_lamc/web/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:53:51 -0000 1.9 @@ -100,7 +100,7 @@ - + Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaPedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaPedagogicalPlannerAction.java,v diff -u -r1.5 -r1.6 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaPedagogicalPlannerAction.java 1 Nov 2010 12:27:13 -0000 1.5 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaPedagogicalPlannerAction.java 12 Feb 2011 18:54:48 -0000 1.6 @@ -25,7 +25,6 @@ package org.lamsfoundation.lams.tool.qa.web; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -62,33 +61,10 @@ QaPedagogicalPlannerForm plannerForm = (QaPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); QaContent qaContent = getQaService().retrieveQa(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(qaContent); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(QaAppConstants.SUCCESS); - } else { - try { - String onlineInstructions = qaContent.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(qaContent.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - QaPedagogicalPlannerAction.logger.error(e); - } - return null; - } - + plannerForm.fillForm(qaContent); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(QaAppConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_laqa/web/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.8 -r1.9 --- lams_tool_laqa/web/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:44:18 -0000 1.8 +++ lams_tool_laqa/web/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:48 -0000 1.9 @@ -70,7 +70,7 @@ <%@ include file="/common/messages.jsp"%>

- + Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java,v diff -u -r1.56 -r1.57 --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 12 Dec 2010 14:44:00 -0000 1.56 +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 12 Feb 2011 18:54:23 -0000 1.57 @@ -24,7 +24,6 @@ package org.lamsfoundation.lams.tool.rsrc.web.action; import java.io.IOException; -import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.sql.Timestamp; @@ -1217,36 +1216,15 @@ return errors; } - public ActionForward initPedagogicalPlannerForm(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { + public ActionForward initPedagogicalPlannerForm(ActionMapping mapping, ActionForm form, HttpServletRequest request, + HttpServletResponse response) { ResourcePedagogicalPlannerForm plannerForm = (ResourcePedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Resource taskList = getResourceService().getResourceByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(taskList); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(ResourceConstants.SUCCESS); - } else { - try { - String onlineInstructions = taskList.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(taskList.getOnlineInstructions()) ? "NO" : "OK") + '&' + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - AuthoringAction.log.error(e); - } - return null; - } - + plannerForm.fillForm(taskList); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(ResourceConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Index: lams_tool_larsrc/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.8 -r1.9 --- lams_tool_larsrc/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:44:00 -0000 1.8 +++ lams_tool_larsrc/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:24 -0000 1.9 @@ -76,7 +76,7 @@ <%@ include file="/common/messages.jsp"%> - + Index: lams_tool_mindmap/src/java/org/lamsfoundation/lams/tool/mindmap/web/actions/PedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_mindmap/src/java/org/lamsfoundation/lams/tool/mindmap/web/actions/PedagogicalPlannerAction.java,v diff -u -r1.1 -r1.2 --- lams_tool_mindmap/src/java/org/lamsfoundation/lams/tool/mindmap/web/actions/PedagogicalPlannerAction.java 3 Apr 2009 00:00:29 -0000 1.1 +++ lams_tool_mindmap/src/java/org/lamsfoundation/lams/tool/mindmap/web/actions/PedagogicalPlannerAction.java 12 Feb 2011 18:54:37 -0000 1.2 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.mindmap.web.actions; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -74,32 +72,11 @@ MindmapPedagogicalPlannerForm plannerForm = (MindmapPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Mindmap mindmap = getMindmapService().getMindmapByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(mindmap); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(MindmapConstants.SUCCESS); - } else { - try { - String onlineInstructions = mindmap.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); + plannerForm.fillForm(mindmap); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(MindmapConstants.SUCCESS); - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(mindmap.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - PedagogicalPlannerAction.logger.error(e); - } - return null; - } } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_mindmap/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_mindmap/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.2 -r1.3 --- lams_tool_mindmap/web/pages/authoring/pedagogicalPlannerForm.jsp 6 Oct 2010 10:15:41 -0000 1.2 +++ lams_tool_mindmap/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:37 -0000 1.3 @@ -18,7 +18,7 @@ <%@ include file="/common/messages.jsp"%>

- + Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbPedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbPedagogicalPlannerAction.java,v diff -u -r1.4 -r1.5 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbPedagogicalPlannerAction.java 27 Oct 2010 17:53:27 -0000 1.4 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbPedagogicalPlannerAction.java 12 Feb 2011 18:53:42 -0000 1.5 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.noticeboard.web; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -73,33 +71,11 @@ NbPedagogicalPlannerForm plannerForm = (NbPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); NoticeboardContent noticeboard = getNoticeboardService().retrieveNoticeboard(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(noticeboard); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward("success"); - } else { - try { - String onlineInstructions = noticeboard.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); + plannerForm.fillForm(noticeboard); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward("success"); - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(noticeboard.getOnlineInstructions()) ? "NO" : "OK") - + '&' + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - NbPedagogicalPlannerAction.logger.error(e); - } - return null; - } - } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_nb/web/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/web/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_nb/web/authoring/pedagogicalPlannerForm.jsp 27 Oct 2010 17:53:26 -0000 1.6 +++ lams_tool_nb/web/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:53:42 -0000 1.7 @@ -17,7 +17,7 @@

- + Index: lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/PedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/PedagogicalPlannerAction.java,v diff -u -r1.3 -r1.4 --- lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/PedagogicalPlannerAction.java 29 Jan 2009 22:01:45 -0000 1.3 +++ lams_tool_notebook/src/java/org/lamsfoundation/lams/tool/notebook/web/actions/PedagogicalPlannerAction.java 12 Feb 2011 18:55:00 -0000 1.4 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.notebook.web.actions; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -74,32 +72,10 @@ NotebookPedagogicalPlannerForm plannerForm = (NotebookPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Notebook notebook = getNotebookService().getNotebookByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(notebook); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(NotebookConstants.SUCCESS); - } else { - try { - String onlineInstructions = notebook.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(notebook.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - PedagogicalPlannerAction.logger.error(e); - } - return null; - } + plannerForm.fillForm(notebook); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(NotebookConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_notebook/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_notebook/web/pages/authoring/pedagogicalPlannerForm.jsp 6 Oct 2010 10:15:53 -0000 1.9 +++ lams_tool_notebook/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:55:00 -0000 1.10 @@ -18,7 +18,7 @@ <%@ include file="/common/messages.jsp"%>

- + Index: lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/SubmitFilesPedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/SubmitFilesPedagogicalPlannerAction.java,v diff -u -r1.2 -r1.3 --- lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/SubmitFilesPedagogicalPlannerAction.java 29 Jan 2009 21:58:07 -0000 1.2 +++ lams_tool_sbmt/src/java/org/lamsfoundation/lams/tool/sbmt/web/SubmitFilesPedagogicalPlannerAction.java 12 Feb 2011 18:54:54 -0000 1.3 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.sbmt.web; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -75,32 +73,10 @@ SubmitFilesPedagogicalPlannerForm plannerForm = (SubmitFilesPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); SubmitFilesContent submitFiles = getSubmitFilesService().getSubmitFilesContent(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(submitFiles); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(SbmtConstants.SUCCESS); - } else { - try { - String onlineInstructions = submitFiles.getOnlineInstruction(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(submitFiles.getOnlineInstruction()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - SubmitFilesPedagogicalPlannerAction.logger.error(e); - } - return null; - } + plannerForm.fillForm(submitFiles); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(SbmtConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_sbmt/web/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/web/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.6 -r1.7 --- lams_tool_sbmt/web/authoring/pedagogicalPlannerForm.jsp 6 Oct 2010 10:17:51 -0000 1.6 +++ lams_tool_sbmt/web/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:54 -0000 1.7 @@ -17,7 +17,7 @@

- + Index: lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/PedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/PedagogicalPlannerAction.java,v diff -u -r1.1 -r1.2 --- lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/PedagogicalPlannerAction.java 26 Feb 2009 19:19:21 -0000 1.1 +++ lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/web/actions/PedagogicalPlannerAction.java 12 Feb 2011 18:53:46 -0000 1.2 @@ -25,7 +25,6 @@ package org.lamsfoundation.lams.tool.scribe.web.actions; import java.io.IOException; -import java.io.PrintWriter; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -73,33 +72,10 @@ ScribePedagogicalPlannerForm plannerForm = (ScribePedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Scribe scribe = getScribeService().getScribeByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(scribe); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward("success"); - } else { - try { - String onlineInstructions = scribe.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(scribe.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - LamsDispatchAction.log.error(e); - } - return null; - } - + plannerForm.fillForm(scribe); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward("success"); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_scribe/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_scribe/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:43:39 -0000 1.3 +++ lams_tool_scribe/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:53:46 -0000 1.4 @@ -53,7 +53,7 @@ - + Index: lams_tool_task/src/java/org/lamsfoundation/lams/tool/taskList/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/src/java/org/lamsfoundation/lams/tool/taskList/web/action/AuthoringAction.java,v diff -u -r1.17 -r1.18 --- lams_tool_task/src/java/org/lamsfoundation/lams/tool/taskList/web/action/AuthoringAction.java 25 Nov 2010 09:20:16 -0000 1.17 +++ lams_tool_task/src/java/org/lamsfoundation/lams/tool/taskList/web/action/AuthoringAction.java 12 Feb 2011 18:54:13 -0000 1.18 @@ -24,7 +24,6 @@ package org.lamsfoundation.lams.tool.taskList.web.action; import java.io.IOException; -import java.io.PrintWriter; import java.sql.Timestamp; import java.util.ArrayList; import java.util.Date; @@ -1064,31 +1063,8 @@ TaskListPedagogicalPlannerForm plannerForm = (TaskListPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); TaskList taskList = getTaskListService().getTaskListByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(taskList); - return mapping.findForward("success"); - } else { - try { - String onlineInstructions = taskList.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(taskList.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - AuthoringAction.log.error(e); - } - return null; - } - + plannerForm.fillForm(taskList); + return mapping.findForward("success"); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_task/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_task/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.5 -r1.6 --- lams_tool_task/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:44:13 -0000 1.5 +++ lams_tool_task/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:13 -0000 1.6 @@ -57,7 +57,7 @@ <%@ include file="/common/messages.jsp"%>

- + Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VotePedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VotePedagogicalPlannerAction.java,v diff -u -r1.4 -r1.5 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VotePedagogicalPlannerAction.java 2 Mar 2009 10:16:40 -0000 1.4 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VotePedagogicalPlannerAction.java 12 Feb 2011 18:54:42 -0000 1.5 @@ -25,7 +25,6 @@ package org.lamsfoundation.lams.tool.vote.web; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -62,33 +61,10 @@ VotePedagogicalPlannerForm plannerForm = (VotePedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); VoteContent voteContent = getVoteService().retrieveVote(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(voteContent); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward(VoteAppConstants.SUCCESS); - } else { - try { - String onlineInstructions = voteContent.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(voteContent.getOnlineInstructions()) ? "NO" : "OK") - + '&' + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - VotePedagogicalPlannerAction.logger.error(e); - } - return null; - } - + plannerForm.fillForm(voteContent); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward(VoteAppConstants.SUCCESS); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_vote/web/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/web/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_vote/web/authoring/pedagogicalPlannerForm.jsp 12 Dec 2010 14:43:35 -0000 1.9 +++ lams_tool_vote/web/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:42 -0000 1.10 @@ -71,7 +71,7 @@ <%@ include file="/common/messages.jsp"%> - + Index: lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/actions/PedagogicalPlannerAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/actions/PedagogicalPlannerAction.java,v diff -u -r1.2 -r1.3 --- lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/actions/PedagogicalPlannerAction.java 29 Jan 2009 21:59:06 -0000 1.2 +++ lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/actions/PedagogicalPlannerAction.java 12 Feb 2011 18:54:01 -0000 1.3 @@ -25,12 +25,10 @@ package org.lamsfoundation.lams.tool.wiki.web.actions; import java.io.IOException; -import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -73,32 +71,10 @@ WikiPedagogicalPlannerForm plannerForm = (WikiPedagogicalPlannerForm) form; Long toolContentID = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_CONTENT_ID); Wiki wiki = getWikiService().getWikiByContentId(toolContentID); - String command = WebUtil.readStrParam(request, AttributeNames.PARAM_COMMAND, true); - if (command == null) { - plannerForm.fillForm(wiki); - String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); - plannerForm.setContentFolderID(contentFolderId); - return mapping.findForward("success"); - } else { - try { - String onlineInstructions = wiki.getOnlineInstructions(); - response.setContentType("text/html;charset=utf-8"); - PrintWriter writer = response.getWriter(); - - if (AttributeNames.COMMAND_CHECK_EDITING_ADVICE.equals(command)) { - Integer activityIndex = WebUtil.readIntParam(request, AttributeNames.PARAM_ACTIVITY_INDEX); - String responseText = (StringUtils.isEmpty(wiki.getOnlineInstructions()) ? "NO" : "OK") + '&' - + activityIndex; - writer.print(responseText); - - } else if (AttributeNames.COMMAND_GET_EDITING_ADVICE.equals(command)) { - writer.print(onlineInstructions); - } - } catch (IOException e) { - PedagogicalPlannerAction.logger.error(e); - } - return null; - } + plannerForm.fillForm(wiki); + String contentFolderId = WebUtil.readStrParam(request, AttributeNames.PARAM_CONTENT_FOLDER_ID); + plannerForm.setContentFolderID(contentFolderId); + return mapping.findForward("success"); } public ActionForward saveOrUpdatePedagogicalPlannerForm(ActionMapping mapping, ActionForm form, Index: lams_tool_wiki/web/pages/authoring/pedagogicalPlannerForm.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_wiki/web/pages/authoring/pedagogicalPlannerForm.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_wiki/web/pages/authoring/pedagogicalPlannerForm.jsp 6 Oct 2010 10:16:46 -0000 1.4 +++ lams_tool_wiki/web/pages/authoring/pedagogicalPlannerForm.jsp 12 Feb 2011 18:54:01 -0000 1.5 @@ -34,7 +34,7 @@ - +