Thursday, November 7, 2013

How to get HttpServletRequest and HttpServletResponse from a JSF context

// Servlet request from JSF context
HttpServletRequest request = FacesContext.getCurrentInstance()
.getExternalContext().getRequest();

// Servlet response from JSF context
HttpServletResponse response = FacesContext.getCurrentInstance()
.getExternalContext().getResponse();

LinkWithin

Related Posts Plugin for WordPress, Blogger...