You can create an ApplicationEventListener that listens for
AuthenticationSuccessEvent. In order to get the request/session
anywhere in your application, you can add Spring's
RequestContextListener to your web.xml. From there, you can cast
RequestContextHolder.getRequestAttributes to ServletRequestAttributes
and call getRequest().getSession(). Sorry I don't have any code for
this, but I did it at a client last week and know it works.

Matt

On 5/30/07, sionsmith <[EMAIL PROTECTED]> wrote:

Hi everyone

I'm implementing a bread crumb trail in the main menu. I have a session
backing bean which an a included page references. My question is how do i
create this bean and put it into their session when they log in. I've got my
own implementation of the AuthenticationManager but i dont seem to be able
to get hold of the session to put the bean into :(

Any ideas about how to do this, either in the Authentication Manager or in
spring would be very greatful :)

Many thanks

Sion
--
View this message in context: 
http://www.nabble.com/Initializing-session-beans-tf3839106s2369.html#a10869977
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to