Commit 7e45a0a4 authored by Ryan Graham's avatar Ryan Graham Committed by ryang

initial check-in

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2754 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4c4fe50f
<%@ page import="java.io.OutputStream,
org.jivesoftware.messenger.plugin.ImportExportPlugin"
%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<%
admin.init(request, response, session, application, out);
String fileName = request.getParameter("fileName");
response.setContentType("application/x-download");
response.setHeader("Content-Disposition","attachment;filename="+fileName+".xml");
ImportExportPlugin plugin = (ImportExportPlugin) admin.getXMPPServer().getPluginManager().getPlugin("userimportexport");
byte[] content = plugin.exportUsersToFile();
OutputStream os = response.getOutputStream();
os.write(content);
os.flush();
os.close();
%>
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