I have this case: I want to save the user name in a session scoped managed bean after a successful login. I do that login in a servlet filter. How can I access the managed bean from a servlet filter?
Asked
Active
Viewed 922 times
-2
-
you set filter no user out of scope. Then ok problem arise. Bean value. – roel Mar 05 '13 at 08:44
-
No context, no examples, poor quality! Please read [this](http://stackoverflow.com/questions/how-to-ask) and aftewards have a look at [this](http://stackoverflow.com/questions/3920069/how-to-access-managed-bean-and-session-bean-from-servlet) – SimonSez Mar 05 '13 at 09:04
-
possible duplicate of [Accessing a JSF managedBean from a Servlet](http://stackoverflow.com/questions/3578622/accessing-a-jsf-managedbean-from-a-servlet) – Stephan Mar 05 '13 at 09:55
1 Answers
0
If I read your question right, you want to access your beans from a servlet. You should be able to access them in the Servlet Context, look at this answer to see how to do that.