Originally posted by Reggie Rodrigues:
I tried your approach but I am not able to get the backing bean from the session object in the servlet.
BackingBean myBean = (BackingBean)request.getSession().getAttribute("mybean");
myBean is always null.
I also tried getting the Faces Context but it also comes back as null:
FacesContext fctx = FacesContext.getCurrentInstance();
It seems when I am in the servlet I am not able to access objects normally available when I go through the Faces Servlet. Any suggestions or am I missing something?