summaryrefslogtreecommitdiffstats
path: root/WEB-INF/src/ExcelGenerator.java
blob: 51a4e5431ef23c681571c4feebd303f6c291c9c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

import java.io.IOException;
import java.net.URLDecoder;

import javax.servlet.http.*;

import com.dhtmlx.xml2excel.ExcelWriter;


@SuppressWarnings("serial")
public class ExcelGenerator extends HttpServlet {

	public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		String xml = req.getParameter("grid_xml");
		xml = URLDecoder.decode(xml, "UTF-8");
		(new ExcelWriter()).generate(xml, resp);
	}

}