Commit f01e1abd authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Use better error message.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@811 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2c4f22a2
...@@ -92,7 +92,7 @@ import="java.text.DateFormat, ...@@ -92,7 +92,7 @@ import="java.text.DateFormat,
} }
else { else {
response.sendRedirect("group-edit.jsp?group=" + response.sendRedirect("group-edit.jsp?group=" +
URLEncoder.encode(groupName, "UTF-8") + "&success=false"); URLEncoder.encode(groupName, "UTF-8") + "&success=false&add=true");
} }
return; return;
} }
...@@ -149,8 +149,21 @@ import="java.text.DateFormat, ...@@ -149,8 +149,21 @@ import="java.text.DateFormat,
</div><br> </div><br>
<% <%
} }
else if(request.getParameter("success") != null && request.getParameter("success").equals("false")) {
%> %>
<div class="jive-error">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
<% if(add) { %>
User(s) not added successfully.
<% } %>
</td></tr>
</tbody>
</table>
</div><br>
<% } %>
<form name="ff" action="group-edit.jsp"> <form name="ff" action="group-edit.jsp">
<input type="hidden" name="group" value="<%= groupName %>"/> <input type="hidden" name="group" value="<%= groupName %>"/>
......
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