Index: lams_central/web/addLesson.jsp
===================================================================
diff -u -rc9aead8dc4d1f820cff644f7973adf5072a1bcf7 -r79add7aa4fc06ca2cc260306f2e33f987a0b4bcb
--- lams_central/web/addLesson.jsp (.../addLesson.jsp) (revision c9aead8dc4d1f820cff644f7973adf5072a1bcf7)
+++ lams_central/web/addLesson.jsp (.../addLesson.jsp) (revision 79add7aa4fc06ca2cc260306f2e33f987a0b4bcb)
@@ -188,7 +188,7 @@
-
+
Index: lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LearnerAction.java
===================================================================
diff -u -r9438790401b957cdd70a4d6ab2a76da70176c6eb -r79add7aa4fc06ca2cc260306f2e33f987a0b4bcb
--- lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LearnerAction.java (.../LearnerAction.java) (revision 9438790401b957cdd70a4d6ab2a76da70176c6eb)
+++ lams_learning/src/java/org/lamsfoundation/lams/learning/web/action/LearnerAction.java (.../LearnerAction.java) (revision 79add7aa4fc06ca2cc260306f2e33f987a0b4bcb)
@@ -344,80 +344,6 @@
/**
*
- * The struts dispatch action to retrieve the progress data from the server and tailor it into the object struture - * that expected by flash. A wddx packet with object data struture is sent back in the end of this call. It is used - * to construct or restore the flash learner progress bar - *
- * - *- * Gets the most recent copy from the database - not the cached version. That way if the cached version has - * problems, at least we start off right! - *
- * - *- * As this process is expensive, the server is only expecting this call whenever is necessary. For example, - * starting, resuming and restoring a new lesson. And it should not happen every time that learner is progressing to - * next activity. - *
- * - * @param mapping - * An ActionMapping class that will be used by the Action class to tell the ActionServlet where to send - * the end-user. - * - * @param form - * The ActionForm class that will contain any data submitted by the end-user via a form. - * @param request - * A standard Servlet HttpServletRequest class. - * @param response - * A standard Servlet HttpServletResponse class. - * @return An ActionForward class that will be returned to the ActionServlet indicating where the user is to go - * next. - * @throws IOException - * @throws ServletException - */ - public ActionForward getFlashProgressData(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { - if (LearnerAction.log.isDebugEnabled()) { - LearnerAction.log.debug("Getting Flash progress data..."); - } - - FlashMessage message = null; - try { - - // SessionBean sessionBean = LearningWebUtil.getSessionBean(request,getServlet().getServletContext()); - - Integer learnerId = LearningWebUtil.getUserId(); - ICoreLearnerService learnerService = LearnerServiceProxy - .getLearnerService(getServlet().getServletContext()); - - Long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); - LearnerProgressDTO learnerProgress = learnerService.getProgressDTOByLessonId(lessonId, learnerId); - - message = new FlashMessage("getFlashProgressData", learnerProgress); - - } catch (Exception e) { - message = handleException(e, "getFlashProgressData", - LearnerServiceProxy.getLearnerService(getServlet().getServletContext())); - } - - String wddxPacket = WDDXProcessor.serialize(message); - if (LearnerAction.log.isDebugEnabled()) { - LearnerAction.log.debug("Sending learner progress data to flash:" + wddxPacket); - } - // LDEV-2835 - response.addHeader("Pragma", "no-cache"); - response.addHeader("Cache-Control", "no-cache"); - response.addDateHeader("Expires", System.currentTimeMillis() - LamsDispatchAction.HEADER_EXPIRES_VALUE); - - response.getWriter().print(wddxPacket); - - // don't need to return a action forward because it sent the wddx packet - // back already. - return null; - } - - /** - ** The struts dispatch action to view the activity. This will be called by flash progress bar to check up the * activity component. The lams side will calculate the url and send a flash message back to the flash component. *
Index: lams_learning/web/main.jsp =================================================================== diff -u -ra35fc36e64cad178a6e7c14a3617c0957135cc01 -r79add7aa4fc06ca2cc260306f2e33f987a0b4bcb --- lams_learning/web/main.jsp (.../main.jsp) (revision a35fc36e64cad178a6e7c14a3617c0957135cc01) +++ lams_learning/web/main.jsp (.../main.jsp) (revision 79add7aa4fc06ca2cc260306f2e33f987a0b4bcb) @@ -143,7 +143,9 @@