How to get HttpServletResponse in a Java class?
I have the following code:
HttpServletResponse response = (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
This is usually used when there is a page with a method in the backing bean.
What I have is a Java class, with no page. I want to alter the code above with something else in the right hand side.
JDev version: 11.1.1.5.0