Index: lams_learning/conf/language/ApplicationResources.properties =================================================================== diff -u -r810a3898f726d0eae005128cde246c8e0d3c0ed3 -rde5a963d4ae1a002658a0f777f0eeeb58f183e72 --- lams_learning/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision 810a3898f726d0eae005128cde246c8e0d3c0ed3) +++ lams_learning/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision de5a963d4ae1a002658a0f777f0eeeb58f183e72) @@ -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 =================================================================== diff -u -r04802eaaf2249d4faf8784f702664d28f46fdebc -rde5a963d4ae1a002658a0f777f0eeeb58f183e72 --- lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java (.../MainExportServlet.java) (revision 04802eaaf2249d4faf8784f702664d28f46fdebc) +++ lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java (.../MainExportServlet.java) (revision de5a963d4ae1a002658a0f777f0eeeb58f183e72) @@ -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 =================================================================== diff -u -r88e368163f647f4dec71a7ad2b2e4afe60526af5 -rde5a963d4ae1a002658a0f777f0eeeb58f183e72 --- lams_learning/web/exportWaitingPage.jsp (.../exportWaitingPage.jsp) (revision 88e368163f647f4dec71a7ad2b2e4afe60526af5) +++ lams_learning/web/exportWaitingPage.jsp (.../exportWaitingPage.jsp) (revision de5a963d4ae1a002658a0f777f0eeeb58f183e72) @@ -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 @@ - Generating Export + <fmt:message key='export.portfolio.window.title'/> +