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 |
This page is used to catch NotLoggedInExceptions which are |
211 |
22 Mar 05 |
nicklas |
25 |
directed here via the exception.jsp page. NotLoggedInExceptions |
211 |
22 Mar 05 |
nicklas |
26 |
happen when a user tries to access a protected page without beeing |
211 |
22 Mar 05 |
nicklas |
27 |
logged in. Typically the exception is thrown from the method that |
211 |
22 Mar 05 |
nicklas |
28 |
retrieves the BaseControl object: |
211 |
22 Mar 05 |
nicklas |
29 |
|
211 |
22 Mar 05 |
nicklas |
30 |
BASE.getExistingBaseControl(pageContext); |
211 |
22 Mar 05 |
nicklas |
31 |
|
211 |
22 Mar 05 |
nicklas |
32 |
This page will display a new login form allowing the user |
211 |
22 Mar 05 |
nicklas |
33 |
to login again and continue with what he/she was doing. |
211 |
22 Mar 05 |
nicklas |
34 |
|
211 |
22 Mar 05 |
nicklas |
35 |
@author Nicklas |
211 |
22 Mar 05 |
nicklas |
36 |
@version 2.0 |
211 |
22 Mar 05 |
nicklas |
37 |
--%> |
5426 |
24 Sep 10 |
nicklas |
38 |
<%@ page pageEncoding="UTF-8" session="false" |
3061 |
15 Jan 07 |
nicklas |
39 |
import="net.sf.basedb.core.Application" |
693 |
31 May 05 |
nicklas |
40 |
import="net.sf.basedb.core.SessionControl" |
693 |
31 May 05 |
nicklas |
41 |
import="net.sf.basedb.clients.web.Base" |
2753 |
20 Oct 06 |
nicklas |
42 |
import="net.sf.basedb.util.Values" |
211 |
22 Mar 05 |
nicklas |
43 |
isErrorPage="true" |
211 |
22 Mar 05 |
nicklas |
44 |
%> |
6426 |
27 Feb 14 |
nicklas |
45 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
211 |
22 Mar 05 |
nicklas |
46 |
<% |
522 |
04 May 05 |
nicklas |
47 |
final SessionControl sc = Base.getSessionControl(pageContext, true); |
522 |
04 May 05 |
nicklas |
48 |
final String ID = sc.getId(); |
522 |
04 May 05 |
nicklas |
49 |
final String root = request.getContextPath()+"/"; |
693 |
31 May 05 |
nicklas |
50 |
final String redirect = Values.getString((String)request.getAttribute("redirect")); |
5918 |
21 Dec 11 |
nicklas |
51 |
|
6426 |
27 Feb 14 |
nicklas |
52 |
try |
6426 |
27 Feb 14 |
nicklas |
53 |
{ |
6426 |
27 Feb 14 |
nicklas |
54 |
%> |
6426 |
27 Feb 14 |
nicklas |
55 |
<base:page type="default" menu="exception" title="Not logged in"> |
7680 |
04 Apr 19 |
nicklas |
56 |
<base:head scripts="exception.js"> |
7680 |
04 Apr 19 |
nicklas |
57 |
<style> |
7680 |
04 Apr 19 |
nicklas |
58 |
.default h1 |
7680 |
04 Apr 19 |
nicklas |
59 |
{ |
7680 |
04 Apr 19 |
nicklas |
60 |
position: inherit; |
7680 |
04 Apr 19 |
nicklas |
61 |
height: auto; |
7680 |
04 Apr 19 |
nicklas |
62 |
width: auto; |
7680 |
04 Apr 19 |
nicklas |
63 |
} |
7680 |
04 Apr 19 |
nicklas |
64 |
.popup h1 |
7680 |
04 Apr 19 |
nicklas |
65 |
{ |
7680 |
04 Apr 19 |
nicklas |
66 |
margin-left: 0.5em; |
7680 |
04 Apr 19 |
nicklas |
67 |
} |
7813 |
19 May 20 |
nicklas |
68 |
.dialogbuttons.popup-only |
7813 |
19 May 20 |
nicklas |
69 |
{ |
7813 |
19 May 20 |
nicklas |
70 |
display: none; |
7813 |
19 May 20 |
nicklas |
71 |
} |
7813 |
19 May 20 |
nicklas |
72 |
.popup .dialogbuttons.popup-only |
7813 |
19 May 20 |
nicklas |
73 |
{ |
7813 |
19 May 20 |
nicklas |
74 |
display: block; |
7813 |
19 May 20 |
nicklas |
75 |
} |
7813 |
19 May 20 |
nicklas |
76 |
.popup .dialogbuttons.no-popup |
7813 |
19 May 20 |
nicklas |
77 |
{ |
7813 |
19 May 20 |
nicklas |
78 |
display: none; |
7813 |
19 May 20 |
nicklas |
79 |
} |
7680 |
04 Apr 19 |
nicklas |
80 |
</style> |
7680 |
04 Apr 19 |
nicklas |
81 |
</base:head> |
6426 |
27 Feb 14 |
nicklas |
82 |
<base:body data-resize-if-popup="1"> |
6426 |
27 Feb 14 |
nicklas |
83 |
|
7540 |
03 Dec 18 |
nicklas |
84 |
<table style="margin: auto; max-width: 600px; margin-top:5em; margin-bottom: 1em;"> |
7540 |
03 Dec 18 |
nicklas |
85 |
<tr> |
7540 |
03 Dec 18 |
nicklas |
86 |
<td> |
7540 |
03 Dec 18 |
nicklas |
87 |
<h1>Not logged in</h1> |
7680 |
04 Apr 19 |
nicklas |
88 |
<div class="messagecontainer error" style="margin-top: 0.25em; padding: 1em; font-size: 120%;"> |
7540 |
03 Dec 18 |
nicklas |
89 |
You have been automatically logged out due to inactivity or because the |
7540 |
03 Dec 18 |
nicklas |
90 |
server has been restarted. |
7540 |
03 Dec 18 |
nicklas |
91 |
You may log in again and continue your work but unsaved changes |
7540 |
03 Dec 18 |
nicklas |
92 |
may have been lost. |
7540 |
03 Dec 18 |
nicklas |
93 |
</div> |
7540 |
03 Dec 18 |
nicklas |
94 |
</td> |
7540 |
03 Dec 18 |
nicklas |
95 |
</tr> |
7540 |
03 Dec 18 |
nicklas |
96 |
</table> |
7540 |
03 Dec 18 |
nicklas |
97 |
|
7813 |
19 May 20 |
nicklas |
98 |
<base:buttongroup subclass="dialogbuttons popup-only"> |
7540 |
03 Dec 18 |
nicklas |
99 |
<base:button id="close" title="Close"/> |
7540 |
03 Dec 18 |
nicklas |
100 |
<base:button id="gologin" image="login.png" title="Login again…" /> |
7540 |
03 Dec 18 |
nicklas |
101 |
</base:buttongroup> |
7813 |
19 May 20 |
nicklas |
102 |
<base:buttongroup subclass="dialogbuttons no-popup"> |
7813 |
19 May 20 |
nicklas |
103 |
<base:button id="gologin2" image="login.png" title="Login again…" /> |
7813 |
19 May 20 |
nicklas |
104 |
</base:buttongroup> |
7540 |
03 Dec 18 |
nicklas |
105 |
|
6426 |
27 Feb 14 |
nicklas |
106 |
</base:body> |
6426 |
27 Feb 14 |
nicklas |
107 |
</base:page> |
6426 |
27 Feb 14 |
nicklas |
108 |
<% |
6426 |
27 Feb 14 |
nicklas |
109 |
} |
6426 |
27 Feb 14 |
nicklas |
110 |
finally |
7540 |
03 Dec 18 |
nicklas |
111 |
{} |
6426 |
27 Feb 14 |
nicklas |
112 |
%> |