servlet in a jsf application

All,I'm trying to build a download servet to protect file access. I am however doing this in a JSF application and therefore I'd like to know if it is possible to access my session / application managed-beans from out the servlet?Thanks,Steven
[273 byte] By [tombatorea] at [2007-11-27 8:45:46]
# 1
Yes, it is possible. The session beans are accessible via the HttpSession. The application scope is the same as the attributes on the ServletContext. This assumes that the beans were already accessed via JSF. If not, you may need to get fancier and create yourself a FacesContext.
RaymondDeCampoa at 2007-7-12 20:47:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Any hints on how I can create the FacesContext myself?FacesContext.getCurrentInstance() understandably returns null but I have no clue how to do it otherwise...Thanks
tombatorea at 2007-7-12 20:47:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Nevermind, I found it here: http://www.thoughtsabout.net/blog/archives/000033.html
tombatorea at 2007-7-12 20:47:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...