grails中报Cannot create a session after the response has been committed异常的解决办法

在grails中,a56爆大奖在线娱乐们在layouts\main.gsp中使用类似如下的代码来判断当前用户处于登录状态时显示相关的登录信息: 1 2 3 ... 4 5 6 7 8 9 ...10 11 但在运行时,发生了如下的异常:CausedbyGroovyPagesException:ErrorprocessingGroovyPageView:Cannotcreateasessionaftertheresponsehasbeencommitted->>2886|runWorkerin\grails-app\views\layouts\main.gsp要解决这个异常,可以使用如下方式来解决:.
posted @ 2013-11-12 11:38  dreampursuer  阅读(1656)  评论(0编辑  收藏  举报