Commit 0ffa0b11 authored by Matt Tucker's avatar Matt Tucker Committed by matt

No longer used.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@397 b35dd754-fafc-0310-a699-88a17e54d16e
parent d9ae3e1e
<%@ taglib uri="core" prefix="c"%>
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.ParamUtils,
java.text.DateFormat,
java.util.HashMap,
java.util.Map,
org.jivesoftware.messenger.XMPPServerInfo"
%>
<%
// Handle a cancel
if (request.getParameter("cancel") != null) {
response.sendRedirect("server-props.jsp");
return;
}
%>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<c:set var="admin" value="${admin.manager}" />
<% admin.init(request, response, session, application, out ); %>
<!-- Define BreadCrumbs -->
<c:set var="title" value="Edit Server Properties" />
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" />
<c:set target="${breadcrumbs}" property="Home" value="index.jsp" />
<c:set target="${breadcrumbs}" property="Server Properties" value="server-props.jsp" />
<c:set target="${breadcrumbs}" property="${title}" value="server-props-edit-form.jsp" />
<jsp:include page="top.jsp" flush="true" />
<% // Get parameters
boolean save = ParamUtils.getBooleanParameter(request,"save");
boolean success = false;
String name = ParamUtils.getParameter(request,"servername");
// Handle a save
Map errors = new HashMap();
if (save) {
// do validation
if (name == null) {
errors.put("servername","servername");
}
if (errors.size() == 0) {
admin.getXMPPServer().getServerInfo().setName(name);
success = true;
}
}
else {
name = admin.getServerInfo().getName() == null
? "" : admin.getServerInfo().getName();
}
%>
<br>
<% if (success) { %>
<p class="jive-success-text">
Server properties edited successfully. You must restart the server in order for
the changes to take effect (see <a href="server-status.jsp">Server Status</a>).
</p>
<% } %>
<p>
Use the form below to edit server properties.
</p>
<form action="server-props-edit-form.jsp">
<input type="hidden" name="save" value="true">
<div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr>
<td class="jive-label">
Server name:
</td>
<td>
<input type="text" size="30" maxlength="150" name="servername"
value="<%= name %>">
<% if (errors.get("servername") != null) { %>
<span class="jive-error-text">
Please enter a valid name.
</span>
<% } %>
</td>
</tr>
</table>
</div>
<br>
<input type="submit" value="Save Server Properties">
<input type="submit" name="cancel" value="Cancel">
</form>
<jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment