You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Todd Nine <to...@gmail.com> on 2007/01/04 22:38:33 UTC
JSF Integration with Legacy Portal. Need access to HTTPRequest and HTTPResponse
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?
Thanks,
Todd
Re: JSF Integration with Legacy Portal. Need access to HTTPRequest
and HTTPResponse
Posted by Simon Kitching <si...@rhe.co.nz>.
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