Index: lams_tool_chat/.classpath =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/.classpath,v diff -u -r1.3 -r1.4 --- lams_tool_chat/.classpath 5 May 2006 00:39:10 -0000 1.3 +++ lams_tool_chat/.classpath 16 May 2006 02:46:10 -0000 1.4 @@ -10,5 +10,6 @@ + Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java,v diff -u -r1.5 -r1.6 --- lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java 5 May 2006 00:51:23 -0000 1.5 +++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/AuthoringAction.java 16 May 2006 02:45:45 -0000 1.6 @@ -40,6 +40,7 @@ import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.upload.FormFile; +import org.lamsfoundation.lams.authoring.web.AuthoringConstants; import org.lamsfoundation.lams.contentrepository.client.IToolContentHandler; import org.lamsfoundation.lams.tool.chat.beans.AuthoringSessionBean; import org.lamsfoundation.lams.tool.chat.model.Chat; @@ -189,6 +190,8 @@ // update form and return to page. resetAuthSession(authSession, content); authForm.setAuthSession(authSession); + + request.setAttribute(AuthoringConstants.LAMS_AUTHORING_SUCCESS_FLAG,Boolean.TRUE); return mapping.findForward("success"); } Index: lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/actions/ClearSessionAction.java 16 May 2006 02:45:45 -0000 1.1 @@ -0,0 +1,51 @@ +/**************************************************************** + * 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.0 + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/* $Id$ */ +package org.lamsfoundation.lams.tool.chat.web.actions; + +import javax.servlet.http.HttpSession; + +import org.lamsfoundation.lams.authoring.web.LamsAuthoringFinishAction; +import org.lamsfoundation.lams.tool.ToolAccessMode; + +/** + * This class give a chance to clear HttpSession when user save/close authoring page. + * @author Steve.Ni + * ----------------XDoclet Tags-------------------- + * + * @struts:action path="/clearsession" validate="false" + * + * @version $Revision$ + */ +public class ClearSessionAction extends LamsAuthoringFinishAction { + + @Override + public void clearSession(HttpSession session, ToolAccessMode mode) { + if(mode.isAuthor()){ +// session.removeAttribute(QaAction.SUBMIT_SUCCESS); + } + } + + +} Index: lams_tool_chat/web/WEB-INF/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/Attic/lams.tld,v diff -u -r1.3 -r1.4 --- lams_tool_chat/web/WEB-INF/lams.tld 20 Apr 2006 05:21:50 -0000 1.3 +++ lams_tool_chat/web/WEB-INF/lams.tld 16 May 2006 02:46:10 -0000 1.4 @@ -2,7 +2,7 @@ 1.0 @@ -275,8 +275,12 @@ /WEB-INF/tags/SetEditor.tag + AuthoringButton + /WEB-INF/tags/AuthoringButton.tag + + headItems /WEB-INF/tags/headItems.tag - + Index: lams_tool_chat/web/WEB-INF/struts/struts-config.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/struts/Attic/struts-config.xml,v diff -u -r1.2 -r1.3 --- lams_tool_chat/web/WEB-INF/struts/struts-config.xml 19 Apr 2006 06:40:28 -0000 1.2 +++ lams_tool_chat/web/WEB-INF/struts/struts-config.xml 16 May 2006 02:46:10 -0000 1.3 @@ -55,6 +55,13 @@ /> + + +<%@ tag body-content="scriptless" %> +<%@ taglib uri="tags-core" prefix="c" %> +<%@ taglib uri="tags-fmt" prefix="fmt" %> +<%@ taglib uri="tags-html" prefix="html" %> + +<%@ attribute name="formID" required="true" rtexprvalue="true" %> +<%@ attribute name="toolSignature" required="true" rtexprvalue="true" %> +<%@ attribute name="toolContentID" required="true" rtexprvalue="true" %> +<%@ attribute name="clearSessionActionUrl" required="true" rtexprvalue="true" %> + +<%-- Optional attribute --%> +<%@ attribute name="accessMode" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="saveButtonLabelKey" required="false" rtexprvalue="true" %> +<%@ attribute name="cancelConfirmMsgKey" required="false" rtexprvalue="true" %> + +<%-- Default value for message key --%> + + + + + + + + + + + + + + + +

+ + + + + + +

+ \ No newline at end of file Index: lams_tool_chat/web/WEB-INF/tags/HTMLEditor.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tags/Attic/HTMLEditor.tag,v diff -u -r1.1 -r1.2 Binary files differ Index: lams_tool_chat/web/WEB-INF/tags/SetEditor.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tags/Attic/SetEditor.tag,v diff -u -r1.1 -r1.2 Binary files differ Index: lams_tool_chat/web/WEB-INF/tags/Tab.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tags/Tab.tag,v diff -u -r1.1 -r1.2 Binary files differ Index: lams_tool_chat/web/WEB-INF/tags/TabBody.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tags/TabBody.tag,v diff -u -r1.1 -r1.2 Binary files differ Index: lams_tool_chat/web/WEB-INF/tags/Tabs.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tags/Tabs.tag,v diff -u -r1.1 -r1.2 Binary files differ Index: lams_tool_chat/web/pages/authoring/authoring.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/pages/authoring/authoring.jsp,v diff -u -r1.3 -r1.4 --- lams_tool_chat/web/pages/authoring/authoring.jsp 19 Apr 2006 06:40:27 -0000 1.3 +++ lams_tool_chat/web/pages/authoring/authoring.jsp 16 May 2006 02:46:10 -0000 1.4 @@ -7,10 +7,10 @@
- + - +
@@ -34,14 +34,10 @@
<%-- Form Controls --%> -
- - - - - - -
+ + +