Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java =================================================================== diff -u -ra3373207133535e1504e5cb32bf10903e39355bd -r7035e68254c6966bba853d8ab04823eb5d1ed432 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java (.../McMonitoringAction.java) (revision a3373207133535e1504e5cb32bf10903e39355bd) +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McMonitoringAction.java (.../McMonitoringAction.java) (revision 7035e68254c6966bba853d8ab04823eb5d1ed432) @@ -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