Index: lams_learning/conf/language/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_learning/conf/language/Attic/ApplicationResources.properties,v diff -u -r1.11 -r1.12 --- lams_learning/conf/language/ApplicationResources.properties 30 Jun 2006 03:44:22 -0000 1.11 +++ lams_learning/conf/language/ApplicationResources.properties 13 Jul 2006 00:07:50 -0000 1.12 @@ -62,6 +62,9 @@ label.preview.definelater.title=Activity is set to Define Later label.preview.definelater.message=The next activity ({0}) is set to define later. Normally a staff member would set the content for the activity before the learner's can access the activity. For the purposes of preview, the default content for the activity will be displayed. +export.portfolio.window.title=Export Portfolio +export.portfolio.generating.message=Generating portfolio - please wait. +export.portfolio.generation.complete.message=Portfolio generated. Your browser should be downloading the file now. When the file is saved please close this window. # Export portfolio: error message put in the activity's page if the activity doesn't support export portfolio. The name of the activity goes in {0} error.export.portfolio.not.supported=The activity {0} does not support portfolio export. # Export portfolio: Message displayed in portfolio if there aren't any activities on which to report. Index: lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java,v diff -u -r1.15 -r1.16 --- lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java 12 Jul 2006 04:47:55 -0000 1.15 +++ lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java 13 Jul 2006 00:07:49 -0000 1.16 @@ -34,6 +34,7 @@ import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; +import org.apache.log4j.Logger; import org.lamsfoundation.lams.learning.export.ExportPortfolioConstants; import org.lamsfoundation.lams.learning.export.ExportPortfolioException; import org.lamsfoundation.lams.learning.export.Portfolio; @@ -64,6 +65,7 @@ */ public class MainExportServlet extends HttpServlet { + private static Logger log = Logger.getLogger(MainExportServlet.class); private static final long serialVersionUID = 7788509831929373666L; private String exportTmpDir; @@ -127,9 +129,22 @@ CSSBundler bundler = new CSSBundler(request, cookies, exportTmpDir); bundler.bundleStylesheet(); - //zip up the contents of the temp export folder + // zip up the contents of the temp export folder String zipFilename = exportService.zipPortfolio(ExportPortfolioConstants.ZIP_FILENAME, exportTmpDir); +/* -- Used for testing timeout change the export url in exportWaitingPage to + -- String exportUrl = learning_root + "portfolioExport?" + request.getQueryString()+"&sleep=1800000"; + -- to pause for 30 mins. + Integer sleeptime = WebUtil.checkInteger("sleep", request.getParameter("sleep"), true); + if ( sleeptime != null ) { + log.debug("Testing timeouts. Sleeping for "+sleeptime/1000+" seconds"); + try { + Thread.sleep(sleeptime); + } catch (InterruptedException e) { + log.error("Sleep interrupted",e); + } + } +*/ //return the relative filelocation of the zip file so that it can be picked up in exportWaitingPage.jsp PrintWriter out = response.getWriter(); out.println(returnRelativeExportTmpDir(zipFilename)); Index: lams_learning/web/exportWaitingPage.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_learning/web/exportWaitingPage.jsp,v diff -u -r1.9 -r1.10 --- lams_learning/web/exportWaitingPage.jsp 1 Jul 2006 12:49:10 -0000 1.9 +++ lams_learning/web/exportWaitingPage.jsp 13 Jul 2006 00:07:50 -0000 1.10 @@ -25,6 +25,7 @@ <%@ taglib uri="tags-logic" prefix="logic" %> <%@ taglib uri="tags-html" prefix="html" %> <%@ taglib uri="tags-bean" prefix="bean" %> +<%@ taglib uri="tags-lams" prefix="lams" %> <% @@ -43,8 +44,9 @@
-