Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningAction.java,v diff -u -r1.75 -r1.76 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningAction.java 8 May 2013 13:18:25 -0000 1.75 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McLearningAction.java 17 May 2013 14:05:28 -0000 1.76 @@ -473,26 +473,6 @@ McTempDataHolderDTO mcTempDataHolderDTO = new McTempDataHolderDTO(); - boolean allQuestionsChecked = allQuestionsChecked(mcService, learnerInput, mcContent, mcTempDataHolderDTO); - - if (!allQuestionsChecked) { - // there are no selected answers for any questions - ActionMessages errors = new ActionMessages(); - - ActionMessage error = new ActionMessage("answers.submitted.none"); - errors.add(ActionMessages.GLOBAL_MESSAGE, error); - saveErrors(request, errors); - - McLearningStarterAction mcLearningStarterAction = new McLearningStarterAction(); - mcLearningStarterAction.commonContentSetup(request, mcContent, mcService, mcLearningForm, toolSessionID); - - mcGeneralLearnerFlowDTO.setQuestionIndex(mcTempDataHolderDTO.getDisplayOrder()); - - request.setAttribute(McAppConstants.MC_GENERAL_LEARNER_FLOW_DTO, mcGeneralLearnerFlowDTO); - - return mapping.findForward(McAppConstants.LOAD_LEARNER); - } - List selectedQuestionAndCandidateAnswersDTO = buildSelectedQuestionAndCandidateAnswersDTO(learnerInput, mcTempDataHolderDTO, mcService, mcContent); request.setAttribute(McAppConstants.LIST_SELECTED_QUESTION_CANDIDATEANSWERS_DTO, @@ -579,44 +559,7 @@ return mapping.findForward(McAppConstants.INDIVIDUAL_REPORT); } - public boolean allQuestionsChecked(IMcService mcService, List learnerInput, McContent mcContent, - McTempDataHolderDTO mcTempDataHolderDTO) { - - boolean questionSelected = false; - Iterator listIterator = mcContent.getMcQueContents().iterator(); - while (listIterator.hasNext()) { - McQueContent mcQueContent = (McQueContent) listIterator.next(); - String uid = mcQueContent.getUid().toString(); - - questionSelected = false; - Iterator learnerInputIterator = learnerInput.iterator(); - while (learnerInputIterator.hasNext() && !questionSelected) { - String learnerInputLine = (String) learnerInputIterator.next(); - - int sepIndex = learnerInputLine.indexOf("-"); - - String selectedUid = learnerInputLine.substring(0, sepIndex); - - if (uid.equals(selectedUid)) { - questionSelected = true; - } - - } - - if (questionSelected == false) { - mcTempDataHolderDTO.setDisplayOrder(mcQueContent.getDisplayOrder()); - return false; - } - } - - return true; - } - /** - * - * continueOptionsCombined(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse - * response) - * * takes the learner to the next set of questions * * @param request Index: lams_tool_lamc/web/learning/AnswersContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/learning/AnswersContent.jsp,v diff -u -r1.31 -r1.32 --- lams_tool_lamc/web/learning/AnswersContent.jsp 8 Jun 2007 01:38:22 -0000 1.31 +++ lams_tool_lamc/web/learning/AnswersContent.jsp 17 May 2013 14:05:28 -0000 1.32 @@ -37,37 +37,43 @@ <fmt:message key="activity.title" /> + - + @@ -94,7 +99,7 @@
- + @@ -120,15 +125,4 @@
- - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file Index: lams_tool_lamc/web/learning/mobile/CombinedAnswersContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/learning/mobile/CombinedAnswersContent.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_lamc/web/learning/mobile/CombinedAnswersContent.jsp 22 Feb 2012 22:38:26 -0000 1.1 +++ lams_tool_lamc/web/learning/mobile/CombinedAnswersContent.jsp 17 May 2013 14:05:28 -0000 1.2 @@ -56,8 +56,7 @@