在遇到response.sendRedirect("a.jsp")时
如果buffer=128kb(足够大的话),页面不会出错
反之默认,或none则出现java.lang.IllegalStateException如果没有response.sendRedirect之类的则不论如何都不会出错
如果buffer=128kb(足够大的话),页面不会出错
反之默认,或none则出现java.lang.IllegalStateException如果没有response.sendRedirect之类的则不论如何都不会出错
解决方案 »
- run()会选runnable中的还是Thread中的 - SCJP考题求助
- j2me http通信 得到的是服务器页面代码
- HahsTable是否有序
- 我要以开发一个JAVA IDE来做毕业论文,大家可以给我想想吗?
- 如何确定程序运行了多少时间?
- Applet用appletviewer打开就可以弹出文件打开/保存对话框,但IE浏览时却没任何反应!
- Java的绘图是覆盖paint方法还是覆盖paintComponent方法?
- 如果你想玩五子棋游戏,你希望它是什么样子的??(高分哦!!)
- 一個關於SQL數據庫查詢的很菜的問題
- 请问JAVA怎么得到一个字符的ASC值。
- 有个关于JMF的问题要请教高手
- Java如何实现委托(delegate)?
如果buffer=128kb(足够大的话),页面不会出错,但速度好像慢了
反之默认,或none则出现java.lang.IllegalStateException
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.哪位给解释一下?
======================================================
If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to. 也就是说如果response被commit了,再sendRedirect就会报IllegalStateException错,或者是执行sendRedirect后,再往response里写东东,也报错
不好意思,等得太久,都没人回答,所以早结帖了一步.
到http://community.csdn.net/Expert/topic/3352/3352328.xml?temp=.2205927这里领分吧