注册 登录
编程论坛 J2EE论坛

看看我这个错误怎么回事

海蓝啸 发布于 2008-01-10 10:32, 697 次点击
-------------------------------------------------------------------------------------------------------

            User loginUser = UserService.login(code, pwd);
                // 向session存储登陆用户信息
               HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext
                                    ().getSession(false);// .getSession(false);
             session.setAttribute("loginUser", loginUser);
                // 进入下一个页面master
             FacesContext context=FacesContext.getCurrentInstance();
             HttpServletResponse response=(HttpServletResponse)context.getExternalContext().getResponse();
             response.sendRedirect("../main/master.jsf");


--------------------------------------------------------------------------------------------------------

以上是我程序的一段代码,执行后转入到master页面,但是运行报错Cannot forward after response has been committed
各位可知道怎么回事?
1 回复
#2
海蓝啸2008-01-10 10:54
搞定了。。。新页面路径写错了
1