vik ar wrote:If I use a prototype bean then i will be injecting this into a singleton in which case I will have to perform method injection. I think it would be alot easier if at login time I just hard code the initialisation of the user object in the singleton:
and then just add user to the session. Then on logout I will do:
David Newton wrote:Struts 2 actions should probably be declared as "prototype" scope, but in practice it may not make a difference--I've just never tried it.