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

Last change on this file since 3675 was 3675, checked in by Jari Häkkinen, 14 years ago

Fixing copyright statements. Fixing svn properties.

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