java.lang.IllegalStateException: Cannot forward after response has been committed

时间:2014-08-28 13:15:49   收藏:0   阅读:174

发送get或post请求时,抛出如下异常:

java.lang.IllegalStateException: Cannot forward after response has been committed

 bubuko.com,布布扣bubuko.com,布布扣

异常说明response被委派了两次。

解决办法:

 bubuko.com,布布扣

将doGet方法中继承超类的方法屏蔽。

重载父类的方法,会抛出response已经被提交的异常。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!