Within my (JSF, Servlet 3.0) sessionscope there are instances of classes. How can I get the instance of a class by using the names provided in sessionscope?
For example, in my session there is a instance of MyBean:
classes-ManagedBean-class com.MyBean=Bean: Managed Bean [class com.MyBean] with qualifiers [@Any @Default @Named]; Instance: com.MyBean@40a6d41f
In java code, I want to retrieve the actual instance of MyBean:
HttpSession session = us.getHttpSession();
MyBean mybean = (MyBean) session.getAttribute("???");
Which value should I provide for '???'