在遇到response.sendRedirect("a.jsp")时
如果buffer=128kb(足够大的话),页面不会出错
反之默认,或none则出现java.lang.IllegalStateException如果没有response.sendRedirect之类的则不论如何都不会出错

解决方案 »

  1.   

    在遇到response.sendRedirect("a.jsp")时
    如果buffer=128kb(足够大的话),页面不会出错,但速度好像慢了
    反之默认,或none则出现java.lang.IllegalStateException
      

  2.   

    jdk中关于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.哪位给解释一下?
      

  3.   

    J2EE 1.4 API Doc里:HttpServletResponse.sendRedirect方法的说明
    ======================================================
    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里写东东,也报错
      

  4.   

    mor(天蓝,天蓝) :
    不好意思,等得太久,都没人回答,所以早结帖了一步.
    到http://community.csdn.net/Expert/topic/3352/3352328.xml?temp=.2205927这里领分吧