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.