JSF ManagedBean Redirect
FacesContext facesContext = FacesContext.getCurrentInstance();
HttpServletResponse res = (HttpServletResponse)facesContext.getExternalContext().getResponse();
res.setContentType("text/html");
res.setHeader("Location", location);
res.setStatus(301);
facesContext.responseComplete();
Son Yorumlar