Jun 4, 2018

How to get ServletContext in JSF

ServletContext servletContext = (ServletContext) FacesContext
    .getCurrentInstance().getExternalContext().getContext();