Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java,v diff -u -r1.50 -r1.51 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 16 Nov 2006 01:09:25 -0000 1.50 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 6 Feb 2007 00:32:36 -0000 1.51 @@ -670,17 +670,22 @@ return null; } - /** Calls the server to bring up the learner progress page. Assumes destination is a new window */ + /** Calls the server to bring up the learner progress page. + * Assumes destination is a new window. The userid that comes from + * Flash is the user id of the learner for which we are calculating + * the url. This is different to all the other calls. + */ public ActionForward getLearnerActivityURL(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)throws IOException,LamsToolServiceException{ + IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - Integer userID = getUserId(); + Integer learnerUserID = new Integer(WebUtil.readIntParam(request,"userID")); Long activityID = new Long(WebUtil.readLongParam(request,"activityID")); Long lessonID = new Long(WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID)); - String url = monitoringService.getLearnerActivityURL(lessonID,activityID,userID); + String url = monitoringService.getLearnerActivityURL(lessonID,activityID,learnerUserID); return redirectToURL(mapping, response, url); } /** Calls the server to bring up the activity's monitoring page. Assumes destination is a new window */