May 27 2008

jsp sendRedirect 出错

Category: 技术ssmax @ 18:52:19

java.lang.IllegalStateException: Can’t sendRedirect() after data has committed to the client.

本来就是最简单的错误了,sendRedirect之前已经flush过了,有可能是buffer满了或者手动flush,但是检查了一下就不对了,resin默认有8k的buffer,怎么看jsp都输出不了8k的东西,tag的换行最多也就是几十个字节,想不通啊,看resin编译出来的jsp源代码,也没找到有输出什么大东西啊,也不是每个浏览器都出错,偶然才会出现,难道是resin的智能flush作怪,tnnd。。。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.