Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing FacesContext within a Filter

843844Aug 21 2007 — edited Aug 22 2007
I am trying to create a filter which determines whether a user is logged in or not. To do this I need to access the applications session beans which requires a FacesContext object. Unfortunately whenever I run FacesContext.getCurrentInstance() within the filter I always get null returned. Any ideas on a work around? Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2007
Added on Aug 21 2007
10 comments
273 views