source: trunk/www/filemanager/upload/show_exception.jsp @ 3068

Last change on this file since 3068 was 3068, checked in by Johan Enell, 15 years ago

Merged log:branches/2.1.2#2991:3059 to trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 2.3 KB
Line 
1<%-- $Id: show_exception.jsp 3068 2007-01-18 12:20:33Z enell $
2  ------------------------------------------------------------------
3  Copyright (C) Authors contributing to this file.
4
5  This file is part of BASE - BioArray Software Environment.
6  Available at http://base.thep.lu.se/
7
8  BASE is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License
10  as published by the Free Software Foundation; either version 2
11  of the License, or (at your option) any later version.
12
13  BASE is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  GNU General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330,
21  Boston, MA  02111-1307, USA.
22  ------------------------------------------------------------------
23
24  This page is used to display the progress of a file upload. The FileUploadProgress
25  is put into the session setting by the upload.jsp page when the upload is started.
26  If an exception is thrown during the upload we can get it by checking the
27  FileUploadProgress.getException() method. 
28 
29  If we want to abort the upload we use the FileUpload.setAbort() method, which is
30  detected by the upload process and causes an UploadAbortedException to be thrown.
31  This exception is also detected by the FileUploadProgress.getException() method
32  before we display the message about the aborted upload.
33
34  @author Nicklas
35  @version 2.0
36--%>
37<%@ page session="false"
38  import="net.sf.basedb.core.SessionControl"
39  import="net.sf.basedb.core.SimpleProgressReporter"
40  import="net.sf.basedb.clients.web.Base"
41  import="net.sf.basedb.util.Values"
42  import="net.sf.basedb.clients.web.util.HTML"
43  import="net.sf.basedb.clients.web.fileupload.FileUploadProgress"
44  import="net.sf.basedb.clients.web.fileupload.UploadAbortedException"
45%>
46<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
47<%
48final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
49final FileUploadProgress progress = (FileUploadProgress)sc.getSessionSetting("FileUploadProgress");
50sc.setSessionSetting("FileUploadProgress", null);
51sc.setSessionSetting("UnpackProgress", null);
52throw progress.getException();
53%>
Note: See TracBrowser for help on using the repository browser.