在遇到response.sendRedirect("a.jsp")时
如果buffer=128kb(足够大的话),页面不会出错
反之默认,或none则出现java.lang.IllegalStateException如果没有response.sendRedirect之类的则不论如何都不会出错
如果buffer=128kb(足够大的话),页面不会出错
反之默认,或none则出现java.lang.IllegalStateException如果没有response.sendRedirect之类的则不论如何都不会出错
如果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这里领分吧