Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/ImportToolContentAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/web/ImportToolContentAction.java,v diff -u -r1.6 -r1.7 --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/ImportToolContentAction.java 10 Oct 2006 05:43:51 -0000 1.6 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/ImportToolContentAction.java 9 May 2007 11:34:37 -0000 1.7 @@ -158,26 +158,26 @@ if ( extension.equalsIgnoreCase(".las") ) { // process 1.0.x file. String wddxPacket = getPacket(file.getInputStream()); - IExportToolContentService service = getExportService(); - ldId = service.importLearningDesign102(wddxPacket,user,workspaceFolderUid,toolsErrorMsgs); + if ( wddxPacket == null || ! ( wddxPacket.startsWith(" ldErrorMsgs, String filename, String errDescription) { + log.error("Uploaded file not an expected type. Filename was "+filename+" "+errDescription); + MessageService msgService = getMessageService(); + String msg = msgService.getMessage(KEY_MSG_IMPORT_FILE_FORMAT); + ldErrorMsgs.add(msg != null ? msg : "Uploaded file not an expected type."); + } //*************************************************************************************** // Private method Index: lams_central/web/toolcontent/exportchoice.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/toolcontent/exportchoice.jsp,v diff -u -r1.3 -r1.4 --- lams_central/web/toolcontent/exportchoice.jsp 16 Nov 2006 04:24:20 -0000 1.3 +++ lams_central/web/toolcontent/exportchoice.jsp 9 May 2007 11:34:37 -0000 1.4 @@ -38,8 +38,9 @@

-

+

+

Index: lams_central/web/toolcontent/importresult.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/toolcontent/importresult.jsp,v diff -u -r1.12 -r1.13 --- lams_central/web/toolcontent/importresult.jsp 16 Nov 2006 04:24:20 -0000 1.12 +++ lams_central/web/toolcontent/importresult.jsp 9 May 2007 11:34:37 -0000 1.13 @@ -32,7 +32,8 @@

-

+

+

${toolError}

@@ -43,8 +44,11 @@

-
-

${ldErrorMessages}

+

+
+ +

${ldError}

+