摘要: out = pageContext.pushBody()是什么意思? out.clear();out = pageContext.pushBody(); 是什么意思?为什么不加入了就报异常:java.lang.IllegalStateException: getOutputStream() has already been called for this response 由于jsp container在处理完成请求后会调用releasePageContet方法释放所用的PageContext object,并且同时调用getWriter方法,由于getWriter方法与在jsp页面中使用流相 阅读全文
posted @ 2011-10-12 15:42 shenguanhao 阅读(885) 评论(0) 推荐(0) 编辑
摘要: MIME类型大全 格式前面为后辍名,后面为对应的MIME型(例如:rar application/x-rar-compressed 表示.RAR对应的是application/x-rar-compressed ) application/vnd.lotus-1-2-3 3gp video/3gpp aab application/x-authoware-bin aam application/x-authoware-map aas application/x-authoware-seg ai application/postscript aif audio/x-aiff ai... 阅读全文
posted @ 2011-10-12 15:27 shenguanhao 阅读(272) 评论(0) 推荐(0) 编辑
摘要: response.setContentType("APPLICATION/OCTET-STREAM"); //把响应设置为二进制流response.setHeader("Content-Disposition","attachment; filename=\""+filename+"\"");//弹出后点打开会在IE页面打开,注意此时的“你想打开或保存此文件 阅读全文
posted @ 2011-10-12 15:24 shenguanhao 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Array.push可用性Flash Player 5。用法myArray.push(value,...)参数value 要追加到数组的一个或多个值。返回新数组的长度。说明方法;将一个或多个元素添加到数组的结尾,并返回该数组的新长度。示例下面的示例创建具有两个元素(cat 和 dog)的数组 myPets。第二行将两个元素添加到数组。在调用 push 方法后,变量 pushed 包含四个元素。因为 push 方法返回数组的新长度,所以最后一行中的 trace 动作将 myPets 的新长度 (4) 发送到输出窗口:myPets = ["cat", "dog&quo 阅读全文
posted @ 2011-10-12 14:00 shenguanhao 阅读(23494) 评论(0) 推荐(1) 编辑
摘要: 查看地址:http://www.cnblogs.com/niuniu/archive/2010/06/18/1759964.html 阅读全文
posted @ 2011-10-12 13:36 shenguanhao 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 在web.xml文件中添加:<web-app> <session-config> <session-timeout>30</session-timeout> </session-config></web-app> 阅读全文
posted @ 2011-10-12 13:14 shenguanhao 阅读(234) 评论(0) 推荐(0) 编辑