解决办法就是把out.flush();放到所有语句的后面
我之前碰到过,http://blog.csdn.net/ljheee/article/details/51049773那时因为 你用out对象,向JSP页面print了数据,然后又跳转。response 前不能用out