其中我在用word模板生成的jsp页中头加入
<%@page contentType="application/msword;charset=GB2312"%>
<%
response.setHeader("Content-disposition","inline; filename=test.doc");
%>
但有时就有错误出现,还有更好的方法吗?
猜你喜欢
本站原创《复杂软件设计之道:领域驱动设计全面解析与实战》