7 Replies Latest reply on Sep 24, 2010 1:43 PM by deanhiller2000

    getting file path to webroot?

    deanhiller2000

      On an Application scoped bean, I have Startup annotation so it starts immediately at startup.  I need to get the path on the file system to my webapplication's directory.  I tried injecting the FacesContext but that was null at startup time(almost like I need to have a session before that can be injected).  How do I get the path to my web application?  (I am using a component that takes File objects and not URLs)


      thanks,
      dean