Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java,v diff -u -r1.3 -r1.4 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java 15 Jan 2006 16:39:44 -0000 1.3 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java 16 Jan 2006 20:36:21 -0000 1.4 @@ -35,6 +35,7 @@ import org.lamsfoundation.lams.tool.mc.McApplicationException; import org.lamsfoundation.lams.tool.mc.McUtils; import org.lamsfoundation.lams.tool.mc.service.IMcService; +import org.lamsfoundation.lams.tool.mc.service.McServiceProxy; import org.lamsfoundation.lams.web.action.LamsDispatchAction; /** @@ -132,6 +133,7 @@ HttpServletResponse response) throws IOException, ServletException { + logger.debug("dispatching unspecified..."); McMonitoringForm mcMonitoringForm = (McMonitoringForm) form; return null; } @@ -188,6 +190,66 @@ return (mapping.findForward(LOAD_MONITORING)); } + + public ActionForward getSummary(ActionMapping mapping, + ActionForm form, + HttpServletRequest request, + HttpServletResponse response) throws IOException, + ServletException + { + logger.debug("dispatching getSummary..."); + McMonitoringForm mcMonitoringForm = (McMonitoringForm) form; + IMcService mcService =McUtils.getToolService(request); + + String userAction="getSummary"; + request.setAttribute(USER_ACTION, userAction); + logger.debug("userAction:" + userAction); + request.setAttribute(CURRENT_MONITORING_TAB, "summary"); + + return (mapping.findForward(LOAD_MONITORING)); + + } + + + public ActionForward getInstructions(ActionMapping mapping, + ActionForm form, + HttpServletRequest request, + HttpServletResponse response) throws IOException, + ServletException + { + logger.debug("dispatching getInstructions..."); + McMonitoringForm mcMonitoringForm = (McMonitoringForm) form; + IMcService mcService =McUtils.getToolService(request); + + String userAction="getInstructions"; + request.setAttribute(USER_ACTION, userAction); + logger.debug("userAction:" + userAction); + request.setAttribute(CURRENT_MONITORING_TAB, "instructions"); + + return (mapping.findForward(LOAD_MONITORING)); + + } + + + public ActionForward getStats(ActionMapping mapping, + ActionForm form, + HttpServletRequest request, + HttpServletResponse response) throws IOException, + ServletException + { + logger.debug("dispatching getStats..."); + McMonitoringForm mcMonitoringForm = (McMonitoringForm) form; + IMcService mcService =McUtils.getToolService(request); + + String userAction="getStats"; + request.setAttribute(USER_ACTION, userAction); + logger.debug("userAction:" + userAction); + request.setAttribute(CURRENT_MONITORING_TAB, "stats"); + + return (mapping.findForward(LOAD_MONITORING)); + + } + /** * persists error messages to request scope