- 博客(2)
- 资源 (6)
- 收藏
- 关注
原创 getOutputStream() has already been called for this response
最近在做一个验证码,获得验证码以后,写出的时候总是报错 错误如下 getOutputStream() has already been called for this response 很不解,上网查资料发现加两句话就好使: out.clear(); out = pageContext.pushBody(); 原来原因是:jsp容器在处理完请求后会调用release
2012-03-13 11:27:24 464
原创 JSP导出excel文件乱码问题
String str = "我要写入文件,看看我进去是不是乱码"; response.setContentType("application/vnd.ms-excel;charset=GBK"); response.setHeader("Content-Disposition","attachment; filename=" + filename); java
2012-03-07 14:06:29 958
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人