Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GroupingAJAXController.java =================================================================== diff -u -r6e7ab7890111cde84e6557c3507a1e9d3682e318 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GroupingAJAXController.java (.../GroupingAJAXController.java) (revision 6e7ab7890111cde84e6557c3507a1e9d3682e318) +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GroupingAJAXController.java (.../GroupingAJAXController.java) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -40,9 +40,7 @@ import javax.servlet.http.HttpSession; import org.apache.commons.lang.StringUtils; -import org.apache.struts.action.ActionForm; -import org.apache.struts.action.ActionForward; -import org.apache.struts.action.ActionMapping; +import org.apache.log4j.Logger; import org.lamsfoundation.lams.learning.web.action.GroupingAction; import org.lamsfoundation.lams.learningdesign.Activity; import org.lamsfoundation.lams.learningdesign.Group; @@ -61,9 +59,13 @@ import org.lamsfoundation.lams.usermanagement.service.IUserManagementService; import org.lamsfoundation.lams.usermanagement.util.FirstNameAlphabeticComparator; import org.lamsfoundation.lams.util.WebUtil; -import org.lamsfoundation.lams.web.action.LamsDispatchAction; import org.lamsfoundation.lams.web.session.SessionManager; import org.lamsfoundation.lams.web.util.AttributeNames; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -79,8 +81,19 @@ * * @author Fiona Malikoff */ -public class GroupingAJAXAction extends LamsDispatchAction { +@Controller +@RequestMapping("/grouping") +public class GroupingAJAXController { + @Autowired + private WebApplicationContext applicationContext; + + @Autowired + @Qualifier("monitoringService") + private IMonitoringService monitoringService; + + private static Logger log = Logger.getLogger(GroupingAJAXController.class); + // --------------------------------------------------------------------- private static final String CHOSEN_GROUPING_SCREEN = "chosenGrouping"; @@ -101,19 +114,17 @@ * * Input parameters: activityID */ - public ActionForward startGrouping(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { - - return startGrouping(mapping, form, request, response, false); + @RequestMapping("/startGrouping") + public String startGrouping(HttpServletRequest request) throws IOException, ServletException { + + return startGrouping(request, false); } - - private ActionForward startGrouping(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response, boolean forcePrintView) throws IOException, ServletException { - + + private String startGrouping(HttpServletRequest request, boolean forcePrintView) + throws IOException, ServletException { + Long activityID = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); Long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); - IMonitoringService monitoringService = MonitoringServiceProxy - .getMonitoringService(getServlet().getServletContext()); Activity activity = monitoringService.getActivityById(activityID); Grouping grouping = null; @@ -126,10 +137,10 @@ request.setAttribute(AttributeNames.PARAM_ACTIVITY_ID, activityID); request.setAttribute(AttributeNames.PARAM_LESSON_ID, lessonId); - request.setAttribute(GroupingAJAXAction.PARAM_ACTIVITY_TITLE, activity.getTitle()); - request.setAttribute(GroupingAJAXAction.PARAM_ACTIVITY_DESCRIPTION, activity.getDescription()); + request.setAttribute(GroupingAJAXController.PARAM_ACTIVITY_TITLE, activity.getTitle()); + request.setAttribute(GroupingAJAXController.PARAM_ACTIVITY_DESCRIPTION, activity.getDescription()); - if ( !forcePrintView && grouping.isChosenGrouping()) { + if (!forcePrintView && grouping.isChosenGrouping()) { // can I remove groups/users - can't if tool sessions have been created Set groups = grouping.getGroups(); Iterator iter = groups.iterator(); @@ -145,12 +156,12 @@ // groups due to the branching relationship. boolean usedForBranching = grouping.isUsedForBranching(); - request.setAttribute(GroupingAJAXAction.PARAM_MAY_DELETE, mayDelete); - request.setAttribute(GroupingAJAXAction.PARAM_USED_FOR_BRANCHING, usedForBranching); - request.setAttribute(GroupingAJAXAction.PARAM_MAX_NUM_GROUPS, grouping.getMaxNumberOfGroups()); - request.setAttribute(GroupingAJAXAction.PARAM_VIEW_MODE, Boolean.FALSE); + request.setAttribute(GroupingAJAXController.PARAM_MAY_DELETE, mayDelete); + request.setAttribute(GroupingAJAXController.PARAM_USED_FOR_BRANCHING, usedForBranching); + request.setAttribute(GroupingAJAXController.PARAM_MAX_NUM_GROUPS, grouping.getMaxNumberOfGroups()); + request.setAttribute(GroupingAJAXController.PARAM_VIEW_MODE, Boolean.FALSE); - return mapping.findForward(GroupingAJAXAction.CHOSEN_GROUPING_SCREEN); + return "grouping/chosenGrouping"; } SortedSet groups = new TreeSet<>(new GroupComparator()); @@ -166,69 +177,70 @@ request.setAttribute(GroupingAction.GROUPS, groups); // go to a view only screen for random grouping - return mapping.findForward(GroupingAJAXAction.VIEW_GROUPS_SCREEN); + return "grouping/viewGroups"; } - + /** * Called by the chosen grouping / course grouping screen to show a print version of the grouping. */ - public ActionForward printGrouping(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { - + @RequestMapping("/printGrouping") + public String printGrouping(HttpServletRequest request) throws IOException, ServletException { + Long activityID = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID, true); - if ( activityID != null ) { + if (activityID != null) { // normal activity based processing, startGrouping can handle it as it supports the normal view screen in monitoring - return startGrouping(mapping, form, request, response, true); + return startGrouping(request, true); } - + // Not activity? Then it must be the course grouping print view request Long orgGroupingId = WebUtil.readLongParam(request, "groupingId", true); OrganisationGrouping orgGrouping = null; if (orgGroupingId != null) { IUserManagementService userManagementService = MonitoringServiceProxy - .getUserManagementService(getServlet().getServletContext()); + .getUserManagementService(applicationContext.getServletContext()); orgGrouping = (OrganisationGrouping) userManagementService.findById(OrganisationGrouping.class, orgGroupingId); } - SortedSet groups = new TreeSet(); - if ( orgGrouping != null ) { + SortedSet groups = new TreeSet<>(); + if (orgGrouping != null) { groups.addAll(orgGrouping.getGroups()); // sort users with first, then last name, then login Comparator userComparator = new FirstNameAlphabeticComparator(); for (OrganisationGroup group : groups) { - Set sortedUsers = new TreeSet(userComparator); + Set sortedUsers = new TreeSet<>(userComparator); sortedUsers.addAll(group.getUsers()); group.setUsers(sortedUsers); } } request.setAttribute(GroupingAction.GROUPS, groups); request.setAttribute("isCourseGrouping", true); // flag to page it is a course grouping so use the field names for OrganisationGroup - return mapping.findForward(GroupingAJAXAction.VIEW_GROUPS_SCREEN); + return "grouping/viewGroups"; } + /** * Moves users between groups, removing them from previous group and creating a new one, if needed. */ - public ActionForward addMembers(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException { + @RequestMapping("/addMembers") + @ResponseBody + public String addMembers(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("application/json;charset=utf-8"); ObjectNode responseJSON = JsonNodeFactory.instance.objectNode(); boolean result = true; Long activityID = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); - String membersParam = WebUtil.readStrParam(request, GroupingAJAXAction.PARAM_MEMBERS, true); + String membersParam = WebUtil.readStrParam(request, GroupingAJAXController.PARAM_MEMBERS, true); String[] members = StringUtils.isBlank(membersParam) ? null : membersParam.split(","); // remove users from current group - IMonitoringService monitoringService = MonitoringServiceProxy - .getMonitoringService(getServlet().getServletContext()); if (members != null) { Activity activity = monitoringService.getActivityById(activityID); Grouping grouping = activity.isChosenBranchingActivity() ? activity.getGrouping() : ((GroupingActivity) activity).getCreateGrouping(); - User exampleUser = (User) MonitoringServiceProxy.getUserManagementService(getServlet().getServletContext()) + User exampleUser = (User) MonitoringServiceProxy + .getUserManagementService(applicationContext.getServletContext()) .findById(User.class, Integer.valueOf(members[0])); Group group = grouping.getGroupBy(exampleUser); // null group means that user is not assigned anywhere in this grouping @@ -237,15 +249,15 @@ result = group.mayBeDeleted(); if (result) { - if (LamsDispatchAction.log.isDebugEnabled()) { - LamsDispatchAction.log.debug("Removing users " + membersParam.toString() + " from group " + if (GroupingAJAXController.log.isDebugEnabled()) { + GroupingAJAXController.log.debug("Removing users " + membersParam.toString() + " from group " + group.getGroupId() + " in activity " + activityID); } try { monitoringService.removeUsersFromGroup(activityID, group.getGroupId(), members); } catch (LessonServiceException e) { - LamsDispatchAction.log.error(e); + GroupingAJAXController.log.error(e); result = false; } } @@ -262,9 +274,10 @@ // group ID = -1 means that user is not being assigned to any new group, i.e. becomse unassigned if (result && ((groupID == null) || (groupID > 0))) { if (groupID == null) { - String name = WebUtil.readStrParam(request, GroupingAJAXAction.PARAM_NAME); - if (LamsDispatchAction.log.isDebugEnabled()) { - LamsDispatchAction.log.debug("Creating group with name \"" + name + "\" in activity " + activityID); + String name = WebUtil.readStrParam(request, GroupingAJAXController.PARAM_NAME); + if (GroupingAJAXController.log.isDebugEnabled()) { + GroupingAJAXController.log + .debug("Creating group with name \"" + name + "\" in activity " + activityID); } Group group = monitoringService.addGroup(activityID, name, true); if (group == null) { @@ -278,35 +291,35 @@ } if (result && (members != null)) { - if (LamsDispatchAction.log.isDebugEnabled()) { - LamsDispatchAction.log.debug("Adding users " + membersParam.toString() + " to group " + groupID + if (GroupingAJAXController.log.isDebugEnabled()) { + GroupingAJAXController.log.debug("Adding users " + membersParam.toString() + " to group " + groupID + " in activity " + activityID); } // add users to the given group try { monitoringService.addUsersToGroup(activityID, groupID, members); } catch (LessonServiceException e) { - LamsDispatchAction.log.error(e); + GroupingAJAXController.log.error(e); result = false; } } } responseJSON.put("result", result); response.getWriter().write(responseJSON.toString()); - return null; + return responseJSON.toString(); } /** * Stores lesson grouping as a course grouping. */ - public ActionForward saveAsCourseGrouping(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException { - IMonitoringService monitoringService = MonitoringServiceProxy - .getMonitoringService(getServlet().getServletContext()); + @RequestMapping("/saveAsCourseGrouping") + @ResponseBody + public String saveAsCourseGrouping(HttpServletRequest request, HttpServletResponse response) throws IOException { + IUserManagementService userManagementService = MonitoringServiceProxy - .getUserManagementService(getServlet().getServletContext()); + .getUserManagementService(applicationContext.getServletContext()); HttpSession ss = SessionManager.getSession(); Integer userId = ((UserDTO) ss.getAttribute(AttributeNames.USER)).getUserID(); Integer organisationId = WebUtil.readIntParam(request, AttributeNames.PARAM_ORGANISATION_ID); @@ -347,23 +360,20 @@ response.setContentType("application/json;charset=utf-8"); ObjectNode responseJSON = JsonNodeFactory.instance.objectNode(); responseJSON.put("result", true); - response.getWriter().write(responseJSON.toString()); - return null; + return responseJSON.toString(); } /** * Renames the group. */ - public ActionForward changeGroupName(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) { + @RequestMapping("/changeGroupName") + public String changeGroupName(HttpServletRequest request) { Long groupID = WebUtil.readLongParam(request, AttributeNames.PARAM_GROUP_ID); - String name = WebUtil.readStrParam(request, GroupingAJAXAction.PARAM_NAME); + String name = WebUtil.readStrParam(request, GroupingAJAXController.PARAM_NAME); if (name != null) { - if (LamsDispatchAction.log.isDebugEnabled()) { - LamsDispatchAction.log.debug("Renaming group " + groupID + " to \"" + name + "\""); + if (GroupingAJAXController.log.isDebugEnabled()) { + GroupingAJAXController.log.debug("Renaming group " + groupID + " to \"" + name + "\""); } - IMonitoringService monitoringService = MonitoringServiceProxy - .getMonitoringService(getServlet().getServletContext()); monitoringService.setGroupName(groupID, name); } return null; @@ -373,11 +383,11 @@ * Checks if a course grouping name is unique inside of this organisation and thus whether the new group can be * named using it */ - @SuppressWarnings("unchecked") - public ActionForward checkGroupingNameUnique(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException { + @RequestMapping("/checkGroupingNameUnique") + @ResponseBody + public String checkGroupingNameUnique(HttpServletRequest request, HttpServletResponse response) throws IOException { IUserManagementService userManagementService = MonitoringServiceProxy - .getUserManagementService(getServlet().getServletContext()); + .getUserManagementService(applicationContext.getServletContext()); Integer organisationId = WebUtil.readIntParam(request, AttributeNames.PARAM_ORGANISATION_ID); String newGroupingName = request.getParameter("name"); @@ -393,48 +403,45 @@ ObjectNode responseJSON = JsonNodeFactory.instance.objectNode(); responseJSON.put("isGroupingNameUnique", isGroupingNameUnique); response.setContentType("application/json;charset=utf-8"); - response.getWriter().write(responseJSON.toString()); - return null; + return responseJSON.toString(); } /** * Checks if a group can be removed and performs it. */ - public ActionForward removeGroup(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException { + @RequestMapping("/removeGroup") + @ResponseBody + public String removeGroup(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("application/json;charset=utf-8"); Long activityID = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); Long groupID = WebUtil.readLongParam(request, AttributeNames.PARAM_GROUP_ID); - IMonitoringService monitoringService = MonitoringServiceProxy - .getMonitoringService(getServlet().getServletContext()); boolean result = true; // check if the group can be removed - Group group = (Group) MonitoringServiceProxy.getUserManagementService(getServlet().getServletContext()) + Group group = (Group) MonitoringServiceProxy.getUserManagementService(applicationContext.getServletContext()) .findById(Group.class, groupID); result = group.mayBeDeleted(); if (result) { try { - if (LamsDispatchAction.log.isDebugEnabled()) { - LamsDispatchAction.log.debug("Removing group " + groupID + " from activity " + activityID); + if (GroupingAJAXController.log.isDebugEnabled()) { + GroupingAJAXController.log.debug("Removing group " + groupID + " from activity " + activityID); } monitoringService.removeGroup(activityID, groupID); } catch (LessonServiceException e) { - LamsDispatchAction.log.error(e); + GroupingAJAXController.log.error(e); result = false; } } ObjectNode responseJSON = JsonNodeFactory.instance.objectNode(); responseJSON.put("result", result); - response.getWriter().write(responseJSON.toString()); - return null; + return responseJSON.toString(); } private ISecurityService getSecurityService() { if (securityService == null) { WebApplicationContext ctx = WebApplicationContextUtils - .getRequiredWebApplicationContext(getServlet().getServletContext()); + .getRequiredWebApplicationContext(applicationContext.getServletContext()); securityService = (ISecurityService) ctx.getBean("securityService"); } return securityService; Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/TblMonitoringController.java =================================================================== diff -u -r6e7ab7890111cde84e6557c3507a1e9d3682e318 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/TblMonitoringController.java (.../TblMonitoringController.java) (revision 6e7ab7890111cde84e6557c3507a1e9d3682e318) +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/TblMonitoringController.java (.../TblMonitoringController.java) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -11,12 +11,8 @@ import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; -import org.apache.struts.action.ActionForm; -import org.apache.struts.action.ActionForward; -import org.apache.struts.action.ActionMapping; import org.lamsfoundation.lams.gradebook.GradebookUserActivity; import org.lamsfoundation.lams.gradebook.service.IGradebookService; import org.lamsfoundation.lams.learningdesign.Activity; @@ -46,8 +42,10 @@ import org.lamsfoundation.lams.usermanagement.User; import org.lamsfoundation.lams.util.CentralConstants; import org.lamsfoundation.lams.util.WebUtil; -import org.lamsfoundation.lams.web.action.LamsDispatchAction; import org.lamsfoundation.lams.web.util.AttributeNames; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -56,10 +54,15 @@ * * @author Andrey Balan */ -public class TblMonitoringAction extends LamsDispatchAction { +@Controller +@RequestMapping("/tblmonitor") +public class TblMonitoringController { - private static Logger log = Logger.getLogger(TblMonitoringAction.class); + @Autowired + private WebApplicationContext applicationContext; + private static Logger log = Logger.getLogger(TblMonitoringController.class); + private static ILessonService lessonService; private static IMonitoringService monitoringService; private static ILamsCoreToolService coreToolService; @@ -70,9 +73,8 @@ /** * Displays addStudent page. */ - @Override - public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws Exception { + @RequestMapping("/start") + public String unspecified(HttpServletRequest request) throws Exception { initServices(); long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); @@ -82,14 +84,14 @@ List lessonActivities = getLessonActivities(lesson); setupAvailableActivityTypes(request, lessonActivities); - return mapping.findForward("tblmonitor"); + return "tblmonitor/tblmonitor"; } /** * Shows Teams page */ - public ActionForward teams(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { + @RequestMapping("/teams") + public String teams(HttpServletRequest request) throws IOException, ServletException { long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); Lesson lesson = lessonService.getLesson(lessonId); @@ -119,14 +121,14 @@ traGradebookUserActivities = gradebookService.getGradebookUserActivities(traToolActivityId); } - Set leaderUserIds = leaderselectionToolActivityId == null ? new HashSet() + Set leaderUserIds = leaderselectionToolActivityId == null ? new HashSet<>() : toolService.getLeaderUserId(leaderselectionToolActivityId); GroupingActivity groupingActivity = getGroupingActivity(lesson); Grouping grouping = groupingActivity == null ? null : groupingActivity.getCreateGrouping(); Set groups = grouping == null ? null : grouping.getGroups(); - Set groupDtos = new TreeSet(); + Set groupDtos = new TreeSet<>(); if (groups != null) { for (Group group : groups) { TblGroupDTO groupDto = new TblGroupDTO(group); @@ -169,17 +171,17 @@ } request.setAttribute("groupDtos", groupDtos); - return mapping.findForward("teams"); + return "tblmonitor/teams"; } /** * Shows Gates page */ - public ActionForward gates(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { + @RequestMapping("/gates") + public String gates(HttpServletRequest request) throws IOException, ServletException { long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); - List permissionGates = new ArrayList(); + List permissionGates = new ArrayList<>(); List contributeActivities = monitoringService.getAllContributeActivityDTO(lessonId); if (contributeActivities != null) { @@ -211,14 +213,14 @@ } request.setAttribute("permissionGates", permissionGates); - return mapping.findForward("gates"); + return "tblmonitor/gates"; } /** * Shows forum page */ - public ActionForward forum(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { + @RequestMapping("/forum") + public String forum(HttpServletRequest request) throws IOException, ServletException { long forumActivityId = WebUtil.readLongParam(request, "activityId"); ToolActivity forumActivity = (ToolActivity) monitoringService.getActivityById(forumActivityId); @@ -229,14 +231,14 @@ Set toolSessions = forumActivity.getToolSessions(); request.setAttribute("toolSessions", toolSessions); - return mapping.findForward("forum"); + return "tblmonitor/forum"; } /** * Shows peerreview page */ - public ActionForward peerreview(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { + @RequestMapping("/peerreview") + public String peerreview(HttpServletRequest request) throws IOException, ServletException { long peerreviewActivityId = WebUtil.readLongParam(request, "activityId"); ToolActivity peerreviewActivity = (ToolActivity) monitoringService.getActivityById(peerreviewActivityId); @@ -247,18 +249,18 @@ Set toolSessions = peerreviewActivity.getToolSessions(); request.setAttribute("toolSessions", toolSessions); - return mapping.findForward("peerreview"); + return "tblmonitor/peerreview"; } /** * Shows sequence diagram page */ - public ActionForward sequence(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { + @RequestMapping("/sequence") + public String sequence(HttpServletRequest request) throws IOException, ServletException { long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); Lesson lesson = lessonService.getLesson(lessonId); request.setAttribute("lesson", lesson); - return mapping.findForward("sequence"); + return "tblmonitor/sequence"; } /** @@ -276,7 +278,7 @@ */ Activity firstActivity = activityDAO .getActivityByActivityId(lesson.getLearningDesign().getFirstActivity().getActivityId()); - List activities = new ArrayList(); + List activities = new ArrayList<>(); sortActivitiesByLearningDesignOrder(firstActivity, activities); return activities; @@ -334,7 +336,7 @@ } private GroupingActivity getGroupingActivity(Lesson lesson) { - Set activities = new TreeSet(); + Set activities = new TreeSet<>(); /* * Hibernate CGLIB is failing to load the first activity in the sequence as a ToolActivity for some mysterious @@ -358,7 +360,7 @@ } private void setupAvailableActivityTypes(HttpServletRequest request, List activities) { - + //check if there is Scratchie activity. It's used only in case of LKC TBL monitoring, when all assessment are treated as AEs boolean isScratchieAvailable = false; for (Activity activity : activities) { @@ -401,7 +403,8 @@ } //aes are counted only after Scratchie activity, or for LKC TBL monitoring - if ((scratchiePassed || !isScratchieAvailable) && CentralConstants.TOOL_SIGNATURE_ASSESSMENT.equals(toolSignature)) { + if ((scratchiePassed || !isScratchieAvailable) + && CentralConstants.TOOL_SIGNATURE_ASSESSMENT.equals(toolSignature)) { request.setAttribute("isAeAvailable", true); //prepare assessment details to be passed to Assessment tool assessmentToolContentIds += toolContentId + ","; @@ -439,7 +442,7 @@ } private void initServices() { - ServletContext servletContext = this.getServlet().getServletContext(); + ServletContext servletContext = this.applicationContext.getServletContext(); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext); if (lessonService == null) { lessonService = (ILessonService) ctx.getBean("lessonService"); Index: lams_monitoring/web/complexProgress.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/complexProgress.jsp (.../complexProgress.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/complexProgress.jsp (.../complexProgress.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,60 +1,95 @@ -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> +<%-- +Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) +License Information: http://lamsfoundation.org/licensing/lams/2.0/ - + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. - - - - - - - - - - - - - - - - - - - - - -
">">
-
+ This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - - - -

- - - - - - -

- - - - + +
+ You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + USA + + http://www.gnu.org/licenses/gpl.txt +--%> +<%@ include file="/taglibs.jsp"%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
">">
+
+ + + + +

- - - "> - - - - + + + -

+ + + + +
+ + + "> + + + + + +
- - -
+ + +
- + + + + + + + Index: lams_monitoring/web/emailnotifications/additionalSettings.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/emailnotifications/additionalSettings.jsp (.../additionalSettings.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/emailnotifications/additionalSettings.jsp (.../additionalSettings.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,9 +1,4 @@ -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/taglibs.jsp"%>

Index: lams_monitoring/web/emailnotifications/archivedEmailList.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/emailnotifications/archivedEmailList.jsp (.../archivedEmailList.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/emailnotifications/archivedEmailList.jsp (.../archivedEmailList.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,10 +1,4 @@ -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.util.Configuration"%> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> @@ -37,7 +31,7 @@ $("#grid" + notificationUid).jqGrid({ guiStyle: "bootstrap", iconSet: 'fontAwesome', - url: "?method=getArchivedRecipients&emailNotificationUid=" + notificationUid, + url: "?emailNotificationUid=" + notificationUid, datatype: "json", colNames:[''], colModel:[ @@ -58,7 +52,7 @@ function exportNotification(notificationUid) { $('#downloadFrame').attr('src', - "?method=exportArchivedNotification&emailNotificationUid=" + notificationUid); + "?emailNotificationUid=" + notificationUid); } @@ -125,8 +119,8 @@ - Index: lams_monitoring/web/emailnotifications/courseNotifications.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/emailnotifications/courseNotifications.jsp (.../courseNotifications.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/emailnotifications/courseNotifications.jsp (.../courseNotifications.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,10 +1,4 @@ -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/taglibs.jsp"%> <% pageContext.setAttribute("newLineChar", "\n"); %> @@ -49,7 +43,7 @@ jQuery("#list3").jqGrid({ guiStyle: "bootstrap", iconSet: 'fontAwesome', - url: "?method=getUsers" + getSearchParams(), + url: "" + getSearchParams(), datatype: "json", colNames:[''], colModel:[ @@ -149,8 +143,8 @@ scheduleDate = (scheduleDate == null) ? "" : scheduleDate.getTime(); $.ajax({ async: false, - url: '', - data: "method=emailUsers&emailBody=" + emailBody + params, + url: '', + data: "emailBody=" + emailBody + params, dataType: 'json', type: 'post', success: function (json) { @@ -169,7 +163,7 @@ function getUsers(){ var searchParams = getSearchParams(); - var url = "?method=getUsers" + searchParams; + var url = "" + searchParams; if (searchParams.length) { $("#list3").setGridParam({datatype:'json', page:1, url: url}).trigger('reloadGrid'); } else { @@ -223,11 +217,11 @@
- - @@ -238,7 +232,7 @@

-
?method=emailUsers" method="post" id="emailNotificationsForm" > +
@@ -285,7 +279,7 @@ <%@ include file="additionalSettings.jsp"%> - +
Index: lams_monitoring/web/emailnotifications/lessonNotifications.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/emailnotifications/lessonNotifications.jsp (.../lessonNotifications.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/emailnotifications/lessonNotifications.jsp (.../lessonNotifications.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,10 +1,4 @@ -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/taglibs.jsp"%> <% pageContext.setAttribute("newLineChar", "\n"); %> @@ -50,7 +44,7 @@ jQuery("#list3").jqGrid({ guiStyle: "bootstrap", iconSet: 'fontAwesome', - url: "?method=getUsers" + getSearchParams(), + url: "" + getSearchParams(), datatype: "json", colNames:[''], colModel:[ @@ -126,8 +120,8 @@ $.ajax({ async: false, - url: '', - data: "method=emailUsers&emailBody=" + emailBody + params, + url: '', + data: "emailBody=" + emailBody + params, dataType: 'json', type: 'post', success: function (json) { @@ -145,7 +139,7 @@ function getUsers(){ var searchParams = getSearchParams(); - var url = "?method=getUsers" + searchParams; + var url = "" + searchParams; if (searchParams.length) { $("#list3").setGridParam({datatype:'json', page:1, url: url}).trigger('reloadGrid'); } else { @@ -207,7 +201,7 @@

-
?method=emailUsers" method="post" id="emailNotificationsForm" > + @@ -247,7 +241,7 @@ <%@ include file="additionalSettings.jsp"%> - +
Index: lams_monitoring/web/emailnotifications/scheduledEmailList.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/emailnotifications/scheduledEmailList.jsp (.../scheduledEmailList.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/emailnotifications/scheduledEmailList.jsp (.../scheduledEmailList.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,10 +1,4 @@ -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ taglib uri="tags-function" prefix="fn"%> +<%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.util.Configuration"%> <%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> @@ -57,12 +51,12 @@ - ?method=getLessonView&lessonID=${lessonID} - method=deleteNotification&lessonID=${lessonID} + getLessonView.do?lessonID=${lessonID} + deleteNotification.do?lessonID=${lessonID} - ?method=getCourseView&organisationID=${organisationID} - method=deleteNotification&organisationID=${organisationID} + getCourseView.do?organisationID=${organisationID} + deleteNotification.do?organisationID=${organisationID} @@ -113,7 +107,7 @@ - + Index: lams_monitoring/web/errorbox.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/errorbox.jsp (.../errorbox.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/errorbox.jsp (.../errorbox.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,15 +1,11 @@ -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-logic" prefix="logic" %> -<%@ taglib uri="tags-lams" prefix="lams" %> -<%@ page import="org.apache.struts.Globals" %> +<%@ include file="/taglibs.jsp"%> - - - - "> - - - - - - +<%-- Error Messages --%> + + + + +
+
+
+
Index: lams_monitoring/web/gate/conditionGateContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/conditionGateContent.jsp (.../conditionGateContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/conditionGateContent.jsp (.../conditionGateContent.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,37 +1,67 @@ - <%@ taglib uri="tags-html" prefix="html" %> - <%@ taglib uri="tags-bean" prefix="bean" %> - <%@ taglib uri="tags-logic" prefix="logic" %> - <%@ taglib uri="tags-core" prefix="c" %> - <%@ taglib uri="tags-fmt" prefix="fmt" %> - <%@ taglib uri="tags-lams" prefix="lams" %> - - - +<%-- +Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) +License Information: http://lamsfoundation.org/licensing/lams/2.0/ - - + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + USA + + http://www.gnu.org/licenses/gpl.txt +--%> +<%@ include file="/taglibs.jsp"%> + + + + + + - <%@ include file="gateInfo.jsp" %> - -


-

-
- - <%@ include file="gateStatus.jsp" %> - - <%@ include file="openGateSingleUser.jsp" %> - + + +
+ + + + + + <%@ include file="gateInfo.jsp" %> + +


+

+
+ + <%@ include file="gateStatus.jsp" %> + + <%@ include file="openGateSingleUser.jsp" %> + + +
-
\ No newline at end of file + + + + + Index: lams_monitoring/web/gate/gateInfo.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/gateInfo.jsp (.../gateInfo.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/gateInfo.jsp (.../gateInfo.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,15 +1,15 @@ -<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ include file="/taglibs.jsp"%> - +

- +

- +
@@ -24,8 +24,8 @@

- - + +

Index: lams_monitoring/web/gate/gateStatus.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/gateStatus.jsp (.../gateStatus.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/gateStatus.jsp (.../gateStatus.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,4 +1,4 @@ -<%@ taglib uri="tags-function" prefix="fn" %> +<%@ include file="/taglibs.jsp"%> @@ -8,17 +8,17 @@ $(document).ready(function() {$("time.timeago").timeago();}); - + - - - -

-
+ + + +

" />

+
- +
@@ -27,12 +27,12 @@
- -   + +   - +   - + Index: lams_monitoring/web/gate/openGateSingleUser.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/openGateSingleUser.jsp (.../openGateSingleUser.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/openGateSingleUser.jsp (.../openGateSingleUser.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -12,15 +12,15 @@

- - + +

- +
@@ -33,7 +33,7 @@

- +
@@ -46,12 +46,12 @@

- +
- + Index: lams_monitoring/web/gate/permissionGateContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/permissionGateContent.jsp (.../permissionGateContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/permissionGateContent.jsp (.../permissionGateContent.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,37 +1,68 @@ - <%@ taglib uri="tags-html" prefix="html" %> - <%@ taglib uri="tags-bean" prefix="bean" %> - <%@ taglib uri="tags-logic" prefix="logic" %> - <%@ taglib uri="tags-core" prefix="c" %> - <%@ taglib uri="tags-fmt" prefix="fmt" %> - <%@ taglib uri="tags-lams" prefix="lams" %> - - - + + + + + + + + + + + <%@ include file="gateInfo.jsp" %> + + +

+
- - - - <%@ include file="gateInfo.jsp" %> - - -

-
+ <%@ include file="gateStatus.jsp" %> + + <%@ include file="openGateSingleUser.jsp" %> + + +
- <%@ include file="gateStatus.jsp" %> - - <%@ include file="openGateSingleUser.jsp" %> - + -
\ No newline at end of file + + + + + Index: lams_monitoring/web/gate/scheduleGateContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/scheduleGateContent.jsp (.../scheduleGateContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/scheduleGateContent.jsp (.../scheduleGateContent.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -18,99 +18,109 @@ http://www.gnu.org/licenses/gpl.txt --%> +<%@ include file="/taglibs.jsp"%> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-bean" prefix="bean" %> -<%@ taglib uri="tags-logic" prefix="logic" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-lams" prefix="lams" %> - - - - - - - - - + + + + + */ + + + + + - - - - <%@ include file="gateInfo.jsp" %> - - - - - - -

+ <%@ include file="gateInfo.jsp" %> + + + + + + +

+ + + + +
+ + + + + <%-- padding keeps the inputs the same height as the buttons. No flicking when shown/hidden --%> + + " /> +
+
+
- - + +

+
+ + +
+
+ + <%@ include file="gateStatus.jsp" %> + +
-
- - - - - <%-- padding keeps the inputs the same height as the buttons. No flicking when shown/hidden --%> - - -
- - - - -

-
- - - - - <%@ include file="gateStatus.jsp" %> + -
+ + + + Index: lams_monitoring/web/gate/sychGateContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/gate/sychGateContent.jsp (.../sychGateContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/gate/sychGateContent.jsp (.../sychGateContent.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -18,19 +18,26 @@ http://www.gnu.org/licenses/gpl.txt --%> +<%@ include file="/taglibs.jsp"%> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-bean" prefix="bean" %> -<%@ taglib uri="tags-logic" prefix="logic" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-lams" prefix="lams" %> + + + + + + + + + + + + <%@ include file="gateInfo.jsp" %> + <%@ include file="gateStatus.jsp" %> + + - - + - <%@ include file="gateInfo.jsp" %> - <%@ include file="gateStatus.jsp" %> - - - + + Index: lams_monitoring/web/grouping/chosenGrouping.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/grouping/chosenGrouping.jsp (.../chosenGrouping.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/grouping/chosenGrouping.jsp (.../chosenGrouping.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -18,12 +18,8 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> +<%@ include file="/taglibs.jsp"%> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> - Index: lams_monitoring/web/grouping/viewGroups.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/grouping/viewGroups.jsp (.../viewGroups.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/grouping/viewGroups.jsp (.../viewGroups.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -19,13 +19,7 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ taglib uri="tags-html" prefix="html"%> -<%@ taglib uri="tags-bean" prefix="bean"%> -<%@ taglib uri="tags-logic" prefix="logic"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-function" prefix="fn" %> -<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ include file="/taglibs.jsp"%> Index: lams_monitoring/web/monitor.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/monitor.jsp (.../monitor.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,9 +1,4 @@ -<%@ page contentType="text/html; charset=utf-8" language="java"%> - -<%@ taglib uri="tags-lams" prefix="lams"%> -<%@ taglib uri="tags-fmt" prefix="fmt"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-function" prefix="fn" %> +<%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.util.Configuration" import="org.lamsfoundation.lams.util.ConfigurationKeys" %> <%=Configuration.get(ConfigurationKeys.ALLOW_DIRECT_LESSON_LAUNCH)%> <%=Configuration.get(ConfigurationKeys.SERVER_URL)%> Index: lams_monitoring/web/notsupported.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/notsupported.jsp (.../notsupported.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/notsupported.jsp (.../notsupported.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -18,8 +18,20 @@ http://www.gnu.org/licenses/gpl.txt --%> +<%@ include file="/taglibs.jsp"%> + + + + + + + + +

+ + -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> + +
-

Index: lams_monitoring/web/parallelProgress.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/parallelProgress.jsp (.../parallelProgress.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/parallelProgress.jsp (.../parallelProgress.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,8 +1,6 @@ -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> - + +<%@ include file="/taglibs.jsp"%> Index: lams_monitoring/web/previewdeleted.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/previewdeleted.jsp (.../previewdeleted.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/previewdeleted.jsp (.../previewdeleted.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -19,12 +19,7 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> - -<%@ taglib uri="tags-html" prefix="html"%> -<%@ taglib uri="tags-core" prefix="c"%> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-lams" prefix="lams" %> +<%@ include file="/taglibs.jsp"%> Index: lams_monitoring/web/systemErrorContent.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/systemErrorContent.jsp (.../systemErrorContent.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/systemErrorContent.jsp (.../systemErrorContent.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -18,24 +18,34 @@ http://www.gnu.org/licenses/gpl.txt --%> +<%@ include file="/taglibs.jsp"%> - -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-logic" prefix="logic" %> + + + + + + + + + + + + + + +
+ +
+
+ <%@ include file="errorbox.jsp" %> +
+
+ + + - - - - - - - -
- -
-
- <%@ include file="errorbox.jsp" %> -
-
- - + +
+ Index: lams_monitoring/web/template/taglibs.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/template/taglibs.jsp (.../taglibs.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/template/taglibs.jsp (.../taglibs.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,8 +1,5 @@ -<%@ page contentType="text/html; charset=utf-8" language="java"%> -<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-bean" prefix="bean" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-logic" prefix="logic" %> +<%@ page contentType="text/html; charset=utf-8" language="java" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-function" prefix="fn" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> Index: lams_monitoring/web/timer.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/timer.jsp (.../timer.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/timer.jsp (.../timer.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,7 +1,5 @@ -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> +<%@ include file="/taglibs.jsp"%> Index: lams_monitoring/web/viewSequence.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r3eb0caa98564b709116d6e84af92eb3f60c9ff3a --- lams_monitoring/web/viewSequence.jsp (.../viewSequence.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_monitoring/web/viewSequence.jsp (.../viewSequence.jsp) (revision 3eb0caa98564b709116d6e84af92eb3f60c9ff3a) @@ -1,4 +1,4 @@ - <%-- +<%-- Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) License Information: http://lamsfoundation.org/licensing/lams/2.0/ @@ -18,31 +18,37 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> +<%@ include file="/taglibs.jsp"%> + + + + + + + + +

+ + + + + + + +
+
+
+ + + <%@ include file="../template/finishbutton.jsp" %> + +
-<%@ taglib uri="tags-tiles" prefix="tiles" %> -<%@ taglib uri="tags-html" prefix="html" %> -<%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="tags-core" prefix="c" %> -<%@ taglib uri="tags-lams" prefix="lams" %> + + + +
-

- - - - - - - -
-
-
- - - <%@ include file="../template/finishbutton.jsp" %> - -
- -