Archives

  • 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();

    Apr 10th, 2009 | Filed under JSF
Posts Tagged ‘redirect’