-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage.jsp
128 lines (121 loc) · 4.75 KB
/
message.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<%-- $HeadURL: svn+ssh://[email protected]/deegree/apps/igeoportal-standard/trunk/message.jsp $ --%>
<%--
This file is part of deegree, http://deegree.org/
Copyright (C) 2001-2009 by:
- Department of Geography, University of Bonn -
and
- lat/lon GmbH -
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact information:
lat/lon GmbH
Aennchenstr. 19, 53177 Bonn
Germany
http://lat-lon.de/
Department of Geography, University of Bonn
Prof. Dr. Klaus Greve
Postfach 1147, 53001 Bonn
Germany
http://www.geographie.uni-bonn.de/deegree/
e-mail: [email protected]
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.deegree.framework.util.KVP2Map" %>
<%@ page import="org.deegree.portal.Constants" %>
<%@ page import="org.deegree.i18n.Messages" %>
<%@ page import="java.util.Locale" %>
<%@ page import="java.util.Map" %>
<%
Locale loc = request.getLocale();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="lat/lon GmbH" />
<meta name="KeyWords" content="deegree iGeoPortal lat/lon" />
<title>deegree iGeoPortal</title>
<link href="css/deegree.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="./javascript/ext-3.3.1/resources/css/ext-all.css" />
<script type="text/javascript" src="./javascript/ext-3.3.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="./javascript/ext-3.3.1/ext-all.js"></script>
<script language="JavaScript1.2" type="text/javascript">
<!--
/**
* initializing ExtJS GUI elements. At the moment just Ext.Button elements will be used
* In future version this dialog will be completly reimplemented as an ExtJS to avoid
* opening an additional browser window
*/
function initGUI() {
Ext.QuickTips.init();
new Ext.Button({
tooltip: '<%=Messages.get( loc, "IGEO_STD_BTN_PORTAL_TT" ) %>',
text: '<%=Messages.get( loc, "IGEO_STD_BTN_PORTAL" ) %>',
renderTo: 'buttonArea0',
width: 100,
height: 25,
handler: function(toggled){
window.close();
}
});
}
-->
</script>
</head>
<body class="pMessage" onload="initGUI()">
<!-- HEADER AREA -->
<table>
<tbody>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="30"> </td>
<td class="header"><%=Messages.get( loc, "IGEO_STD_MESSAGE_HEADER" ) %></td>
</tr>
</tbody>
</table>
<!-- TEXT AREA -->
<table>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="30"> </td>
<td>
<p>
<%
String msg = "";
// use KVP2Map to ensure proper encoding
Map<String, String> params = KVP2Map.toMap(request);
if ( params.get( "MSG" ) != null ){
msg = params.get( "MSG" );
} else {
msg = (String) request.getAttribute( Constants.MESSAGE ) ;
}
out.println( msg );
%>
</p>
</td>
</tr>
</table>
<!-- BUTTON AREA -->
<br/><br />
<table>
<tr>
<td width="30"> </td>
<td>
<div id="buttonArea0"></div>
</td>
</tr>
</table>
</body>
</html>