Index: lams_build/lib/lams/lams-monitoring.jar =================================================================== diff -u -rc29fa38c77517dfbcc7765fb08836f22340090f2 -r0042ef2efffe59f6e2fa4b1554080a8500df69b9 Binary files differ Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java =================================================================== diff -u -r58daf95f59242b997de7f49a9d81ee9c1c104d5f -r0042ef2efffe59f6e2fa4b1554080a8500df69b9 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java (.../DummyMonitoringAction.java) (revision 58daf95f59242b997de7f49a9d81ee9c1c104d5f) +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java (.../DummyMonitoringAction.java) (revision 0042ef2efffe59f6e2fa4b1554080a8500df69b9) @@ -242,6 +242,37 @@ } /** + * The Struts dispatch method to remove a lesson (marking the lesson by the given lesson ID + * as Lesson.DISABLED_STATE status). Forwards to the control + * list jsp. + * + * @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 removeLesson(ActionMapping mapping, + ActionForm form, + HttpServletRequest request, + HttpServletResponse response) throws IOException, + ServletException + { + this.monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); + + long lessonId = WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID); + monitoringService.removeLesson(lessonId); + + return unspecified(mapping, form, request, response); + } + + /** * The Struts dispatch method that lists a lesson's details. Forwards to the detail screen * * @param mapping An ActionMapping class that will be used by the Action class to tell Index: lams_monitoring/web/dummyControlFrame.jsp =================================================================== diff -u -r418d29c1fccf3dc1bc3ce05b72ce4be6e4f747ff -r0042ef2efffe59f6e2fa4b1554080a8500df69b9 --- lams_monitoring/web/dummyControlFrame.jsp (.../dummyControlFrame.jsp) (revision 418d29c1fccf3dc1bc3ce05b72ce4be6e4f747ff) +++ lams_monitoring/web/dummyControlFrame.jsp (.../dummyControlFrame.jsp) (revision 0042ef2efffe59f6e2fa4b1554080a8500df69b9) @@ -24,6 +24,7 @@ Start new lesson Refresh List
+ Current Lessons @@ -41,6 +42,19 @@
+
+ Archived Lessons + + + +
+
" target="contentFrame">Monitor Lesson +
">Remove Lesson + +
+
+
+