import javax.faces.context.FacesContext;
HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
下面的说明创建一个新页面!
FacesContext facesContext= FacesContext.getCurrentInstance();
response.getWriter().print("OK!");
facesContext.responseComplete();
return null;
相关资源:Java 面经手册·小傅哥(公众号:bugstack虫洞栈).pdf