Yes, there is a way to get hold of a managed bean with session scope in a servlet filter.
See here:
AccessFacesContextFromServlet
and here:
how to access faces context and backing beans in a servlet filter
After I get User bean in my Servlet filter, I populate value to this bean, for example:
user.setLanguage(request.getParameter("locale"));
The User bean is in session scope. The User bean's language attribute suppose to be same in the whole session scope, but later on, I got null. My question is:
how to keep this value in session scope?