看看我这个错误怎么回事
-------------------------------------------------------------------------------------------------------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
各位可知道怎么回事?