Commit 5efdf9c5 authored by Bill Lynch's avatar Bill Lynch Committed by bill

More cleanup/fixes


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@375 b35dd754-fafc-0310-a699-88a17e54d16e
parent 73c26eef
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module version="4" relativePaths="true" type="J2EE_WEB_MODULE"> <module version="4" relativePaths="true" type="J2EE_WEB_MODULE" j2ee-integration="Generic Application Server">
<component name="ModuleRootManager" /> <component name="ModuleRootManager" />
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/src/web/classes" /> <output url="file://$MODULE_DIR$/src/web/classes" />
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Messenger" level="project" /> <orderEntry type="library" name="Messenger" level="project" />
<orderEntry type="library" name="Clover" level="project" />
<orderEntryProperties /> <orderEntryProperties />
</component> </component>
</module> </module>
......
...@@ -233,6 +233,14 @@ ...@@ -233,6 +233,14 @@
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
</library> </library>
<library name="Clover">
<CLASSES>
<root url="jar://C:/java/clover/1.3.2/lib/clover.jar!/" />
<root url="jar://C:/java/clover/1.3.2/lib/clover-idea4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component> </component>
<component name="uidesigner-configuration"> <component name="uidesigner-configuration">
<option name="INSTRUMENT_CLASSES" value="true" /> <option name="INSTRUMENT_CLASSES" value="true" />
......
<%@ taglib uri="core" prefix="c"%><%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
...@@ -20,9 +25,11 @@ ...@@ -20,9 +25,11 @@
java.io.PrintStream, java.io.PrintStream,
org.dom4j.xpath.DefaultXPath, org.dom4j.xpath.DefaultXPath,
org.dom4j.*" org.dom4j.*"
errorPage="error.jsp"
%> %>
<%-- Define Administration Bean --%> <%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<jsp:useBean id="errors" class="java.util.HashMap" /> <jsp:useBean id="errors" class="java.util.HashMap" />
<jsp:useBean id="userData" class="org.jivesoftware.messenger.user.spi.UserPrivateData" /> <jsp:useBean id="userData" class="org.jivesoftware.messenger.user.spi.UserPrivateData" />
...@@ -69,7 +76,7 @@ ...@@ -69,7 +76,7 @@
newUser.saveInfo(); newUser.saveInfo();
// Successful, so redirect // Successful, so redirect
response.sendRedirect("user-create-success.jsp?username=" + newUser.getUsername()); response.sendRedirect("user-properties.jsp?success=true&username=" + newUser.getUsername());
return; return;
} }
catch (UserAlreadyExistsException e) { catch (UserAlreadyExistsException e) {
...@@ -85,8 +92,6 @@ ...@@ -85,8 +92,6 @@
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs <% // Title of this page and breadcrumbs
String title = "Create User"; String title = "Create User";
...@@ -103,9 +108,16 @@ ...@@ -103,9 +108,16 @@
<% if (errors.get("general") != null) { %> <% if (errors.get("general") != null) { %>
<p class="jive-error-text"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Error creating the user account. Please check your error logs. Error creating the user account. Please check your error logs.
</p> </td></tr>
</tbody>
</table>
</div><br>
<% } %> <% } %>
......
<%@ taglib uri="core" prefix="c"%><%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.*,
org.jivesoftware.messenger.user.UserManager"
%>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
<!-- Define BreadCrumbs -->
<c:set var="title" value="User Delete Successfully" />
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" />
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" />
<c:set target="${breadcrumbs}" property="${title}" value="user-delete-success.jsp" />
<jsp:include page="top.jsp" flush="true" />
<p>
The user has been deleted successfully.
</p>
<form action="user-summary.jsp">
<input type="submit" name="" value="Go To User Summary">
</form>
<jsp:include page="bottom.jsp" flush="true" />
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
} }
else { else {
// Done, so redirect // Done, so redirect
response.sendRedirect("user-delete-success.jsp"); response.sendRedirect("user-summary.jsp?deletesuccess=true");
} }
return; return;
} }
......
...@@ -95,6 +95,21 @@ ...@@ -95,6 +95,21 @@
Below is a summary of user properties. To edit properties, click the "Edit" button below. Below is a summary of user properties. To edit properties, click the "Edit" button below.
</p> </p>
<% if (request.getParameter("success") != null) { %>
<div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
New user created successfully.
</td></tr>
</tbody>
</table>
</div><br>
<% } %>
<div class="jive-table"> <div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead> <thead>
......
...@@ -57,6 +57,21 @@ ...@@ -57,6 +57,21 @@
Below is a list of users in the system. Below is a list of users in the system.
</p> </p>
<% if (request.getParameter("deletesuccess") != null) { %>
<div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
User deleted successfully.
</td></tr>
</tbody>
</table>
</div><br>
<% } %>
<p> <p>
Total Users: <%= webManager.getUserManager().getUserCount() %>, Total Users: <%= webManager.getUserManager().getUserCount() %>,
<% if (numPages > 1) { %> <% if (numPages > 1) { %>
...@@ -152,7 +167,7 @@ Sorted by Username ...@@ -152,7 +167,7 @@ Sorted by Username
<a href="user-properties.jsp?username=<%= user.getUsername() %>"><%= user.getUsername() %></a> <a href="user-properties.jsp?username=<%= user.getUsername() %>"><%= user.getUsername() %></a>
</td> </td>
<td width="40%"> <td width="40%">
<%= user.getInfo().getName() %> <%= user.getInfo().getName() %> &nbsp;
</td> </td>
<td width="26%"> <td width="26%">
<%= dateFormatter.format(user.getInfo().getCreationDate()) %> <%= dateFormatter.format(user.getInfo().getCreationDate()) %>
......
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