Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Originally posted by Reggie Rodrigues:
Tim,
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?
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Lincoln Baxter, III | [url]http://ocpsoft.com/[/url] | Creator of: PrettyFaces - Bookmarks, Navigation, and Dynamic Parameters for JSF
Rajesh Kumar Ilango
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|