<%@page import="com.opensymphony.xwork2.util.ValueStack"%><%
ValueStack vs = (ValueStack)request.getAttribute("struts.valueStack");
String aa = (String)vs.findValue("downloadContent");
response.setContentType("application/csv");
response.setHeader("Content-Disposition", "inline; filename=result.csv");
out.print(aa);
%>
JSP中输出CSV文件
最新推荐文章于 2021-02-12 20:27:27 发布