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
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.ParamUtils,
org.jivesoftware.messenger.auth.UnauthorizedException,
org.jivesoftware.util.JiveGlobals,
java.util.Map,
java.util.Iterator,
org.jivesoftware.messenger.ConnectionManager,
org.jivesoftware.database.DbConnectionManager,
org.jivesoftware.messenger.XMPPServer"
%>
<%
boolean showSidebar = false;
// First, update with XMPPSettings
Map xmppSettings = (Map)session.getAttribute("xmppSettings");
Iterator iter = xmppSettings.keySet().iterator();
while(iter.hasNext()){
String name = (String)iter.next();
String value = (String)xmppSettings.get(name);
JiveGlobals.setProperty(name, value);
}
Map xmlSettings = (Map)session.getAttribute("xmlSettings");
iter = xmlSettings.keySet().iterator();
while(iter.hasNext()){
String name = (String)iter.next();
String value = (String)xmlSettings.get(name);
JiveGlobals.setXMLProperty(name, value);
}
// Shut down connection provider. Some connection providers (such as the
// embedded provider) require a clean shut-down.
DbConnectionManager.getConnectionProvider().destroy();
%>
<%@ include file="setup-header.jspf" %>
<p class="jive-setup-page-header">
<fmt:message key="title" /> <fmt:message key="setup.finished.title" />
</p>
<p>
<fmt:message key="setup.finished.info">
<fmt:param value="<%= LocaleUtils.getLocalizedString("title") %>" />
</fmt:message>
</p>
<ol>
<li>
<fmt:message key="setup.finished.restart" /> <b style="font-size:1.2em;"><fmt:message key="global.restart" /></b> <fmt:message key="setup.finished.restart2" />
</li>
<li>
<%
String url = null;
if (XMPPServer.getInstance().isStandAlone()) {
String server = request.getServerName();
String port = JiveGlobals.getXMLProperty("adminConsole.port");
url = "http://" + server + ":" + port + "/login.jsp?username=admin";
}
else {
url = request.getRequestURL().toString();
url = url.replace("setup-finished.jsp", "login.jsp?username=admin");
}
%>
<a href="<%= url %>"><fmt:message key="setup.finished.login" /></a>.
</li>
</ol>
<%@ include file="setup-footer.jsp" %>