Menu

Getting Request and Response Object of JSF page

ADF By Aug 07, 2012 No Comments

By using the below statements we can get the Request and Response objects of the JSF page.
(HttpServletRequest)javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getRequest();
(HttpServletResponse)javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getResponse();

No Comments

Leave a comment

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.