posted 15 years ago
Hello guys,
Once more here I come with a question of s2, i'm a beginner at it and got some trouble finding examples.
I'm build a menu service wich depends upon a login, wich is give when the user enter at start page. Once the login has been made, I store the user object into the session by doing the follow:
and then the doLogin method
Now comes the problem, I have a MenuBean injected on the MenuAction by the following xml piece on ApplicationContext.xml
And the menuAction is declared as follow:
By doing so I need to implement the session set with a private member
The failing part of all its the method bellow, the session object is null at debugging:
Does anyone know why? or how to implement it? Looking at the code above, i need 'Perfil' from the user wich is logged on, if the session contains the key to the user object i get it and then use the perfil to populate the Menu through the setter and return SUCESS, otherwise it'll return INPUT wich will lead to the login screen.
Thanks in advance.
"Sanity calms, but madness is more interesting."<br />- John Russell