Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/McServicePOJO.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/McServicePOJO.java,v diff -u -r1.53 -r1.54 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/McServicePOJO.java 28 Feb 2006 07:32:00 -0000 1.53 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/service/McServicePOJO.java 7 Mar 2006 15:01:04 -0000 1.54 @@ -1033,7 +1033,6 @@ + e.getMessage(), e); } - } public User getCurrentUserData(String username) throws McApplicationException Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringStarterAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringStarterAction.java,v diff -u -r1.17 -r1.18 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringStarterAction.java 28 Feb 2006 07:32:00 -0000 1.17 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringStarterAction.java 7 Mar 2006 15:01:04 -0000 1.18 @@ -28,7 +28,6 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; import org.apache.log4j.Logger; import org.apache.struts.Globals; @@ -44,8 +43,6 @@ import org.lamsfoundation.lams.tool.mc.pojos.McContent; import org.lamsfoundation.lams.tool.mc.service.IMcService; import org.lamsfoundation.lams.tool.mc.service.McServiceProxy; -import org.lamsfoundation.lams.usermanagement.dto.UserDTO; -import org.lamsfoundation.lams.web.session.SessionManager; import org.lamsfoundation.lams.web.util.AttributeNames; Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java,v diff -u -r1.43 -r1.44 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java 7 Mar 2006 13:19:39 -0000 1.43 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaAppConstants.java 7 Mar 2006 15:04:28 -0000 1.44 @@ -195,6 +195,7 @@ public static final String TO_TOOL_CONTENT_ID ="toToolContentId"; public static final String LEARNER_REPORT ="learnerRep"; public static final String REQUEST_LEARNING_REPORT ="requestLearningReport"; + public static final String REQUEST_PREVIEW ="requestPreview"; public static final String REQUEST_LEARNING_REPORT_VIEWONLY ="requestLearningReportViewOnly"; @@ -214,6 +215,7 @@ public static final String QUESTION_LISTING_MODE ="questionListingMode"; public static final String QUESTION_LISTING_MODE_SEQUENTIAL ="questionListingModeSequential"; + public static final String QUESTION_LISTING_MODE_PREVIEW ="questionListingModePreview"; public static final String QUESTION_LISTING_MODE_COMBINED ="questionListingModeCombined"; public static final String FEEDBACK_TYPE_SEQUENTIAL ="You will be presented a total of : "; Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/Attic/QaResources.properties,v diff -u -r1.25 -r1.26 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties 7 Mar 2006 13:19:39 -0000 1.25 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaResources.properties 7 Mar 2006 15:04:28 -0000 1.26 @@ -147,7 +147,8 @@ label.content.notEditable =The content can not be edited since it is being used by learners. label.learning.report =Learning Report -label.learning.viewOnly =Responses Report +label.learning.viewOnly =Previous Responses Report +label.preview =Preview Learner Screen label.openEditor =Open Richtext Editor label.user =User label.question.col =Question: Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaUtils.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/Attic/QaUtils.java,v diff -u -r1.32 -r1.33 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaUtils.java 7 Mar 2006 13:19:39 -0000 1.32 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/QaUtils.java 7 Mar 2006 15:04:28 -0000 1.33 @@ -528,6 +528,7 @@ request.getSession().removeAttribute(QUESTION_LISTING_MODE); request.getSession().removeAttribute(QUESTION_LISTING_MODE_SEQUENTIAL); request.getSession().removeAttribute(QUESTION_LISTING_MODE_COMBINED); + request.getSession().removeAttribute(QUESTION_LISTING_MODE_COMBINED); request.getSession().removeAttribute(FEEDBACK_TYPE_SEQUENTIAL); request.getSession().removeAttribute(FEEDBACK_TYPE_COMBINED); request.getSession().removeAttribute(QUESTIONS); @@ -549,8 +550,10 @@ request.getSession().removeAttribute(LOAD_MONITORING_CONTENT_EDITACTIVITY); request.getSession().removeAttribute(MONITORING_ORIGINATED_DEFINELATER); request.getSession().removeAttribute(REQUEST_LEARNING_REPORT); - request.getSession().removeAttribute(REQUEST_LEARNING_REPORT_VIEWONLY); + request.getSession().removeAttribute(REQUEST_LEARNING_REPORT_VIEWONLY); + request.getSession().removeAttribute(REQUEST_PREVIEW); + request.getSession().removeAttribute(USER_EXCEPTION_WRONG_FORMAT); request.getSession().removeAttribute(USER_EXCEPTION_UNCOMPATIBLE_IDS); request.getSession().removeAttribute(USER_EXCEPTION_NUMBERFORMAT); Index: lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java,v diff -u -r1.24 -r1.25 --- lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java 7 Mar 2006 13:19:39 -0000 1.24 +++ lams_tool_laqa/src/java/org/lamsfoundation/lams/tool/qa/web/QaLearningStarterAction.java 7 Mar 2006 15:04:28 -0000 1.25 @@ -131,6 +131,7 @@ /*initialize available question display modes in the session */ request.getSession().setAttribute(QUESTION_LISTING_MODE_SEQUENTIAL,QUESTION_LISTING_MODE_SEQUENTIAL); request.getSession().setAttribute(QUESTION_LISTING_MODE_COMBINED, QUESTION_LISTING_MODE_COMBINED); + request.getSession().setAttribute(QUESTION_LISTING_MODE_PREVIEW, QUESTION_LISTING_MODE_PREVIEW); IQaService qaService = QaServiceProxy.getQaService(getServlet().getServletContext()); logger.debug("retrieving qaService: " + qaService); @@ -332,9 +333,6 @@ String userFeedback= feedBackType + request.getSession().getAttribute(TOTAL_QUESTION_COUNT) + QUESTIONS; request.getSession().setAttribute(USER_FEEDBACK, userFeedback); - - - /* Is the request for a preview by the author? Preview The tool must be able to show the specified content as if it was running in a lesson. It will be the learner url with tool access mode set to ToolAccessMode.AUTHOR @@ -353,8 +351,11 @@ /*complete this section */ logger.debug("Author requests for a preview of the content."); logger.debug("existing qaContent:" + qaContent); - - return (mapping.findForward(LEARNING_STARTER)); + + /* overwrite qiestionListing mode for preview*/ + request.getSession().setAttribute(QUESTION_LISTING_MODE, QUESTION_LISTING_MODE_PREVIEW); + logger.debug("forwarding to for preview: " + LOAD_LEARNER); + return (mapping.findForward(LOAD_LEARNER)); } /* by now, we know that the mode is either teacher or learner Index: lams_tool_laqa/web/learning/Preview.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/learning/Attic/Preview.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_laqa/web/learning/Preview.jsp 7 Mar 2006 15:04:28 -0000 1.1 @@ -0,0 +1,48 @@ +<%-- +Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +USA + +http://www.gnu.org/licenses/gpl.txt +--%> + +<%@ taglib uri="tags-bean" prefix="bean"%> +<%@ taglib uri="tags-html" prefix="html"%> +<%@ taglib uri="tags-logic" prefix="logic" %> +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-fmt" prefix="fmt" %> +<%@ taglib uri="fck-editor" prefix="FCK" %> +<%@ taglib uri="tags-lams" prefix="lams" %> + + + + + + + + + + + + + +
: + +
+ " size="60" maxlength="255" value=""/> +
 
+ + Index: lams_tool_laqa/web/learning/answersContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/learning/Attic/answersContent.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_laqa/web/learning/answersContent.jsp 24 Feb 2006 15:06:00 -0000 1.4 +++ lams_tool_laqa/web/learning/answersContent.jsp 7 Mar 2006 15:04:28 -0000 1.5 @@ -30,19 +30,30 @@
- - - - - + + + + + + + + + + + +
- -
- -
- + +
+
+ +
+ +
+ +
@@ -63,14 +74,19 @@ + + + + +
-
+ \ No newline at end of file