Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java,v diff -u -r1.20 -r1.21 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java 5 Nov 2005 08:07:45 -0000 1.20 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/McAppConstants.java 5 Nov 2005 11:35:00 -0000 1.21 @@ -35,6 +35,12 @@ * This will be replaced when the deploy logic automatically assigns a default content id in the deploy script. */ + + public static final String ROOT ="root"; + public static final String ROOT_PATH ="rootPath"; + public static final String PATH_TO_LAMS ="pathToLams"; + + public static final String MY_SIGNATURE ="lamc11"; public static final long DEFAULT_CONTENT_ID =0; public static final long DEFAULT_QUE_CONTENT_ID =1; Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java,v diff -u -r1.32 -r1.33 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java 5 Nov 2005 08:07:45 -0000 1.32 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McAction.java 5 Nov 2005 11:35:00 -0000 1.33 @@ -243,6 +243,39 @@ request.getSession().setAttribute(SELECTED_QUESTION,selectedQuestion); logger.debug("updated SELECTED_QUESTION"); } + + + mcAuthoringForm.setAddQuestion(null); + mcAuthoringForm.setRemoveQuestion(null); + mcAuthoringForm.setEditOptions(null); + + + String addQuestion=request.getParameter("addQuestion"); + logger.debug("parameter addQuestion" + addQuestion); + if ((addQuestion != null) && addQuestion.equals("1")) + { + logger.debug("parameter addQuestion is selected " + addQuestion); + mcAuthoringForm.setAddQuestion("1"); + } + + + String editOptions=request.getParameter("editOptions"); + logger.debug("parameter editOptions" + editOptions); + if ((editOptions != null) && editOptions.equals("1")) + { + logger.debug("parameter editOptions is selected " + editOptions); + mcAuthoringForm.setEditOptions("1"); + } + + String removeQuestion=request.getParameter("removeQuestion"); + logger.debug("parameter removeQuestion" + removeQuestion); + if ((removeQuestion != null) && removeQuestion.equals("1")) + { + logger.debug("parameter removeQuestion is selected " + removeQuestion); + mcAuthoringForm.setRemoveQuestion("1"); + } + + String userAction=null; if (mcAuthoringForm.getAddQuestion() != null) @@ -275,6 +308,7 @@ if (weightsValid == false) { request.getSession().setAttribute(CURRENT_TAB, new Long(1)); + mcAuthoringForm.resetUserAction(); return (mapping.findForward(LOAD_QUESTIONS)); } @@ -764,6 +798,7 @@ if (weightsValid == false) { request.getSession().setAttribute(CURRENT_TAB, new Long(1)); + mcAuthoringForm.resetUserAction(); return (mapping.findForward(LOAD_QUESTIONS)); } @@ -905,6 +940,7 @@ request.getSession().setAttribute(EDIT_OPTIONS_MODE, new Integer(0)); logger.debug("setting EDIT_OPTIONS_MODE to 0"); request.getSession().setAttribute(CURRENT_TAB, new Long(1)); + mcAuthoringForm.resetUserAction(); return (mapping.findForward(LOAD_QUESTIONS)); } Index: lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McStarterAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McStarterAction.java,v diff -u -r1.20 -r1.21 --- lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McStarterAction.java 5 Nov 2005 08:07:45 -0000 1.20 +++ lams_tool_lamc/src/java/org/lamsfoundation/lams/tool/mc/web/McStarterAction.java 5 Nov 2005 11:35:00 -0000 1.21 @@ -107,6 +107,22 @@ */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, McApplicationException { + + + String protocol = request.getProtocol(); + if(protocol.startsWith("HTTPS")){ + protocol = "https://"; + }else{ + protocol = "http://"; + } + String root = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; + String pathToLams = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/../.."; + request.getSession().setAttribute(ROOT, root); + request.getSession().setAttribute(ROOT_PATH, root); + request.getSession().setAttribute(PATH_TO_LAMS, pathToLams); + + logger.debug("setting root to: " + request.getSession().getAttribute(ROOT)); + /** * retrive the service */ Index: lams_tool_lamc/web/BasicContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/Attic/BasicContent.jsp,v diff -u -r1.4 -r1.5 --- lams_tool_lamc/web/BasicContent.jsp 29 Oct 2005 19:34:28 -0000 1.4 +++ lams_tool_lamc/web/BasicContent.jsp 5 Nov 2005 11:35:00 -0000 1.5 @@ -7,57 +7,57 @@ - - + - - + - -
: + :
: + :
+   
+
- - - - - + - - - +     - - + - - -     - + + + - - + - + - - -
+ + + +
: : + " value="" size="50" maxlength="255" > +    @@ -70,32 +70,27 @@ - - - + + - - - + + ; document.forms[0].editOptions.value=1; document.forms[0].submit();">
: : + " value="" size="50" maxlength="255" > +    @@ -107,23 +102,20 @@      - - - + + ; document.forms[0].removeQuestion.value=1; document.forms[0].submit();"> - - - + + ; document.forms[0].editOptions.value=1; document.forms[0].submit();">
@@ -132,27 +124,27 @@
: + :        
+   
+   
+ Index: lams_tool_lamc/web/images/Thumbs.db =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/Thumbs.db,v diff -u Binary files differ Index: lams_tool_lamc/web/images/add.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/add.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/bar1.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/bar1.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/bar2.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/bar2.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/bar3.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/bar3.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/bar4.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/bar4.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/bar5.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/bar5.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/columnchart.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/columnchart.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/customer_logo.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/customer_logo.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/delete.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/delete.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/down.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/down.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/edit.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/edit.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/error.jpg =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/error.jpg,v diff -u Binary files differ Index: lams_tool_lamc/web/images/icon_survey.swf =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/icon_survey.swf,v diff -u Binary files differ Index: lams_tool_lamc/web/images/lams_welcome_header.jpg =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/lams_welcome_header.jpg,v diff -u Binary files differ Index: lams_tool_lamc/web/images/launch_page_graphic.jpg =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/launch_page_graphic.jpg,v diff -u Binary files differ Index: lams_tool_lamc/web/images/ld_logo.jpg =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/ld_logo.jpg,v diff -u Binary files differ Index: lams_tool_lamc/web/images/learner_footer.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/learner_footer.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/learner_header_logo.jpg =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/learner_header_logo.jpg,v diff -u Binary files differ Index: lams_tool_lamc/web/images/learner_header_right.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/learner_header_right.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/piechart.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/piechart.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/questiontype_checkbox.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/questiontype_checkbox.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/questiontype_radio.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/questiontype_radio.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/questiontype_textarea.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/questiontype_textarea.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/spacer.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/spacer.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/success.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/success.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/tick_red.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/Attic/tick_red.gif,v diff -u Binary files differ Index: lams_tool_lamc/web/images/up.gif =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/images/up.gif,v diff -u Binary files differ