Todd Nine wrote:
Hi all,
I'm integrating a new JSF portlet with a legacy framework. I use the
term portlet loosely, its actually an application that runs in an
Iframe. I have a utility class that works as follows
JSPUtils.getUser (request, response).
I would like to put this in my bean initialization, however I can't get
to the http request or response objects. Is there a utility class I can
use to get this inside me bean? If now, how would I go about accessing
it for each request before my bean is populated?
FacesContext.getCurrentInstance().getExternalContext() provides access
to the request/response stuff (see ExternalContext class).
Regards,
Simon