tmlx-grid-excel.1.0.0.source-code.CSVGenerator Maven / Gradle / Ivy
import java.io.IOException;
import java.net.URLDecoder;
import javax.servlet.http.*;
import com.dhtmlx.xml2excel.CSVWriter;
public class CSVGenerator extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
req.setCharacterEncoding("UTF-8");
String xml = req.getParameter("grid_xml");
xml = URLDecoder.decode(xml, "UTF-8");
CSVWriter writer = new CSVWriter();
writer.generate(xml, resp);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy