Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/LearningAction.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/LearningAction.java,v
diff -u -r1.13 -r1.14
--- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/LearningAction.java 30 Jun 2006 02:16:53 -0000 1.13
+++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/LearningAction.java 3 Jul 2006 02:16:12 -0000 1.14
@@ -93,6 +93,7 @@
private ActionForward finish(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
//auto run mode, when use finish the only one resource item, mark it as complete then finish this activity as well.
+ String mode = request.getParameter(AttributeNames.ATTR_MODE);
String resourceItemUid = request.getParameter(ResourceConstants.PARAM_RESOURCE_ITEM_UID);
String runOffline = request.getParameter(ResourceConstants.PARAM_RUN_OFFLINE);
if(resourceItemUid != null){
@@ -126,12 +127,15 @@
} catch (ResourceApplicationException e) {
log.error("Failed get next activity url:" + e.getMessage());
}
+
+ request.setAttribute(AttributeNames.ATTR_MODE,mode);
return mapping.findForward("finish");
}
private ActionForward complete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
-
+ String mode = request.getParameter(AttributeNames.ATTR_MODE);
doComplete(request);
+ request.setAttribute(AttributeNames.ATTR_MODE,mode);
return mapping.findForward(ResourceConstants.SUCCESS);
}
@@ -147,6 +151,7 @@
private ActionForward saveOrUpdateItem(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
+ String mode = request.getParameter(AttributeNames.ATTR_MODE);
ResourceItemForm itemForm = (ResourceItemForm)form;
ActionErrors errors = validateResourceItem(itemForm);
@@ -208,6 +213,7 @@
//URL or file upload
request.setAttribute("addType",new Short(type));
+ request.setAttribute(AttributeNames.ATTR_MODE,mode);
return mapping.findForward(ResourceConstants.SUCCESS);
}
/**
Index: lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp,v
diff -u -r1.10 -r1.11
--- lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp 3 Jul 2006 00:58:07 -0000 1.10
+++ lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp 3 Jul 2006 02:16:12 -0000 1.11
@@ -6,18 +6,23 @@
${instructions.title}
<%@ include file="/common/header.jsp"%>
+
+ <%-- param has higher level for request attribute --%>
+
+
+
Index: lams_tool_larsrc/web/pages/learning/addfile.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learning/addfile.jsp,v
diff -u -r1.4 -r1.5
--- lams_tool_larsrc/web/pages/learning/addfile.jsp 28 Jun 2006 07:09:27 -0000 1.4
+++ lams_tool_larsrc/web/pages/learning/addfile.jsp 3 Jul 2006 02:16:12 -0000 1.5
@@ -47,6 +47,7 @@
<%@ include file="/common/messages.jsp"%>
+