2013年2月5日

java.lang.IllegalStateException: getOutputStream() has already been called for this respons 简单解决办法

摘要: 今天在使用struts2 进行文件下载是,总报错:java.lang.IllegalStateException: getOutputStream() has already been called for this respons......解决办法: 把对应的action的返回设置为空,即可轻松解决。例如:public class DownloadFileAction extends ActionSupport implements ServletRequestAware, ServletResponseAware { /** * */ ... 阅读全文

posted @ 2013-02-05 17:18 zenger1025 阅读(5778) 评论(1) 推荐(0)

jquery 全选 / 全不选 实现

摘要: <html> <head> <script src="jquery-1.8.3.js" type="text/javascript"></script> </head> <body> <input type="checkbox" name="chk_list" id="chk_list_1" value="1" />1<br /> <input type="chec 阅读全文

posted @ 2013-02-05 13:56 zenger1025 阅读(94) 评论(0) 推荐(0)

导航