---- Mikael Andersson <[EMAIL PROTECTED]> schrieb:
> Hi
> 
> I'm investigation how to integrate JSF into a large Struts based application
> and one thing which I need to do is access attributes put into the http
> session by Struts (homegrown security framework).
> 
> I first thought that the Session would be the same for both applications but
> discovered that that isnt' the case. If someone can shed some light about
> how this all works I'd be really grateful (session management).
> 
> What I tried was the good old FacesContext->external context->session line.

The sessions *are* the same. Accessing FacesContext.externalContext.session 
should work fine.

Using FacesContext.externalContext.sessionMap should also return the same 
values, but as a map rather than exposing the actual Session object. This can 
be convenient as it avoids a typecast operation.

Regards,

Simon

Reply via email to