211 |
22 Mar 05 |
nicklas |
1 |
<%-- $Id$ |
211 |
22 Mar 05 |
nicklas |
2 |
------------------------------------------------------------------ |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2005 Nicklas Nordborg |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2007 Nicklas Nordborg |
211 |
22 Mar 05 |
nicklas |
6 |
|
2304 |
22 May 06 |
jari |
7 |
This file is part of BASE - BioArray Software Environment. |
2304 |
22 May 06 |
jari |
8 |
Available at http://base.thep.lu.se/ |
211 |
22 Mar 05 |
nicklas |
9 |
|
211 |
22 Mar 05 |
nicklas |
10 |
BASE is free software; you can redistribute it and/or |
211 |
22 Mar 05 |
nicklas |
11 |
modify it under the terms of the GNU General Public License |
4476 |
05 Sep 08 |
jari |
12 |
as published by the Free Software Foundation; either version 3 |
211 |
22 Mar 05 |
nicklas |
13 |
of the License, or (at your option) any later version. |
211 |
22 Mar 05 |
nicklas |
14 |
|
211 |
22 Mar 05 |
nicklas |
15 |
BASE is distributed in the hope that it will be useful, |
211 |
22 Mar 05 |
nicklas |
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
211 |
22 Mar 05 |
nicklas |
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
211 |
22 Mar 05 |
nicklas |
18 |
GNU General Public License for more details. |
211 |
22 Mar 05 |
nicklas |
19 |
|
211 |
22 Mar 05 |
nicklas |
20 |
You should have received a copy of the GNU General Public License |
4510 |
11 Sep 08 |
jari |
21 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
211 |
22 Mar 05 |
nicklas |
22 |
------------------------------------------------------------------ |
211 |
22 Mar 05 |
nicklas |
23 |
|
211 |
22 Mar 05 |
nicklas |
24 |
BasePageExceptions are directed to this page via the exception.jsp page. |
211 |
22 Mar 05 |
nicklas |
25 |
They are displayed in either the regular or in a popup window depending |
211 |
22 Mar 05 |
nicklas |
26 |
on the value of the getPageType() method of the exception. |
211 |
22 Mar 05 |
nicklas |
27 |
|
211 |
22 Mar 05 |
nicklas |
28 |
@author Nicklas |
211 |
22 Mar 05 |
nicklas |
29 |
@version 2.0 |
211 |
22 Mar 05 |
nicklas |
30 |
--%> |
5426 |
24 Sep 10 |
nicklas |
31 |
<%@ page pageEncoding="UTF-8" session="false" |
211 |
22 Mar 05 |
nicklas |
32 |
import="net.sf.basedb.clients.web.WebException" |
211 |
22 Mar 05 |
nicklas |
33 |
isErrorPage="true" |
211 |
22 Mar 05 |
nicklas |
34 |
%> |
211 |
22 Mar 05 |
nicklas |
35 |
<%@ |
211 |
22 Mar 05 |
nicklas |
36 |
taglib prefix="base" uri="/WEB-INF/base.tld" |
211 |
22 Mar 05 |
nicklas |
37 |
%> |
211 |
22 Mar 05 |
nicklas |
38 |
<% |
2375 |
13 Jun 06 |
nicklas |
39 |
Throwable t = exception; |
2384 |
15 Jun 06 |
nicklas |
40 |
// t is either a JasperException, a ServletException or a WebException; see exception.jsp |
2384 |
15 Jun 06 |
nicklas |
41 |
if (t instanceof org.apache.jasper.JasperException) |
2384 |
15 Jun 06 |
nicklas |
42 |
{ |
2384 |
15 Jun 06 |
nicklas |
43 |
t = ((org.apache.jasper.JasperException)t).getRootCause(); |
2384 |
15 Jun 06 |
nicklas |
44 |
} |
2375 |
13 Jun 06 |
nicklas |
45 |
if (t instanceof ServletException) |
2375 |
13 Jun 06 |
nicklas |
46 |
{ |
2375 |
13 Jun 06 |
nicklas |
47 |
t = ((ServletException)t).getRootCause(); |
2375 |
13 Jun 06 |
nicklas |
48 |
// t should now be a WebException |
2375 |
13 Jun 06 |
nicklas |
49 |
} |
2375 |
13 Jun 06 |
nicklas |
50 |
WebException ex = (WebException)t; |
211 |
22 Mar 05 |
nicklas |
51 |
%> |
417 |
19 Apr 05 |
nicklas |
52 |
<base:page type="<%=ex.getPageType()%>" menu="auto" title="<%=ex.getTitle()%>"> |
5395 |
27 Aug 10 |
nicklas |
53 |
<base:head scripts="exception.js" /> |
6309 |
21 Aug 13 |
nicklas |
54 |
<base:body> |
5917 |
19 Dec 11 |
nicklas |
55 |
|
5917 |
19 Dec 11 |
nicklas |
56 |
<h1><%=ex.getTitle()%></h1> |
5917 |
19 Dec 11 |
nicklas |
57 |
|
6610 |
20 Nov 14 |
nicklas |
58 |
<div class="content bg-filled-50 bottomborder"> |
5917 |
19 Dec 11 |
nicklas |
59 |
<table style="margin: auto; height: 100%;"> |
5917 |
19 Dec 11 |
nicklas |
60 |
<tr><td> |
6021 |
19 Mar 12 |
nicklas |
61 |
<div class="messagecontainer error"> |
5917 |
19 Dec 11 |
nicklas |
62 |
<%=ex.getDetail()%> |
5917 |
19 Dec 11 |
nicklas |
63 |
</div> |
5917 |
19 Dec 11 |
nicklas |
64 |
</td></tr> |
5917 |
19 Dec 11 |
nicklas |
65 |
</table> |
417 |
19 Apr 05 |
nicklas |
66 |
</div> |
522 |
04 May 05 |
nicklas |
67 |
|
5917 |
19 Dec 11 |
nicklas |
68 |
<base:buttongroup subclass="dialogbuttons"> |
6309 |
21 Aug 13 |
nicklas |
69 |
<base:button id="goback" title="Back" /> |
6309 |
21 Aug 13 |
nicklas |
70 |
<base:button id="close" title="Close" /> |
5917 |
19 Dec 11 |
nicklas |
71 |
</base:buttongroup> |
5917 |
19 Dec 11 |
nicklas |
72 |
|
417 |
19 Apr 05 |
nicklas |
73 |
</base:body> |
211 |
22 Mar 05 |
nicklas |
74 |
</base:page> |
211 |
22 Mar 05 |
nicklas |
75 |
|
211 |
22 Mar 05 |
nicklas |
76 |
|