Index: lams_build/lib/lams/lams-monitoring.jar
===================================================================
RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams-monitoring.jar,v
diff -u -r1.21 -r1.22
Binary files differ
Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/Attic/DummyMonitoringAction.java,v
diff -u -r1.9 -r1.10
--- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java 22 Dec 2005 01:25:33 -0000 1.9
+++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/DummyMonitoringAction.java 20 Jan 2006 00:42:50 -0000 1.10
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_monitoring/web/Attic/dummyControlFrame.jsp,v
diff -u -r1.3 -r1.4
--- lams_monitoring/web/dummyControlFrame.jsp 18 Jan 2006 01:03:20 -0000 1.3
+++ lams_monitoring/web/dummyControlFrame.jsp 20 Jan 2006 00:42:50 -0000 1.4
@@ -24,6 +24,7 @@