Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java,v diff -u -r1.21 -r1.22 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java 21 Dec 2005 03:19:34 -0000 1.21 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/web/NbAuthoringAction.java 11 Jan 2006 03:30:31 -0000 1.22 @@ -268,8 +268,8 @@ public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws NbApplicationException { NbAuthoringForm nbForm = (NbAuthoringForm)form; - copyAuthoringFormValuesIntoFormBean(request, nbForm); - + //copyAuthoringFormValuesIntoFormBean(request, nbForm); + INoticeboardService nbService = NoticeboardServiceProxy.getNbService(getServlet().getServletContext()); String idAsString = nbForm.getToolContentID(); if (idAsString == null) @@ -385,7 +385,7 @@ //set up the values in the map //call the uploadFile method from toolContentHandler NbAuthoringForm nbForm = (NbAuthoringForm)form; - copyAuthoringFormValuesIntoFormBean(request, nbForm); + //copyAuthoringFormValuesIntoFormBean(request, nbForm); FormFile theFile; INoticeboardService nbService = NoticeboardServiceProxy.getNbService(getServlet().getServletContext()); @@ -403,7 +403,7 @@ { boolean isOnlineFile = ((nbForm.getOnlineFile() != null && (nbForm.getOnlineFile().getFileName().trim().length() != 0)) ? true: false ); theFile = (isOnlineFile ? nbForm.getOnlineFile() : nbForm.getOfflineFile()); - String fileType = isOnlineFile ? NoticeboardAttachment.TYPE_ONLINE : NoticeboardAttachment.TYPE_OFFLINE; + String fileType = isOnlineFile ? IToolContentHandler.TYPE_ONLINE : IToolContentHandler.TYPE_OFFLINE; List attachmentList = (List) request.getSession().getAttribute(NoticeboardConstants.ATTACHMENT_LIST); List deletedAttachmentList = (List) request.getSession().getAttribute(NoticeboardConstants.DELETED_ATTACHMENT_LIST); @@ -543,7 +543,7 @@ * @param request HttpServlet request * @param form The ActionForm class containing data submitted by the forms. */ - private void copyAuthoringFormValuesIntoFormBean(HttpServletRequest request, NbAuthoringForm form) + /* private void copyAuthoringFormValuesIntoFormBean(HttpServletRequest request, NbAuthoringForm form) { String onlineInstruction = WebUtil.readStrParam(request, NoticeboardConstants.RICH_TEXT_ONLINE_INSTRN, true); String offlineInstruction = WebUtil.readStrParam(request, NoticeboardConstants.RICH_TEXT_OFFLINE_INSTRN, true); @@ -559,7 +559,7 @@ form.setOfflineInstructions(offlineInstruction); - } + } */ /* private void copyFormValuesIntoNbContent(HttpServletRequest request, NoticeboardContent nbContent) {