3 Replies Latest reply on Apr 12, 2010 9:32 AM by Peter Len

    How to get absolute path to web context?

    Peter Len Apprentice



      I have a richfaces component that makes a call to a method in my backing bean.  In the bean I need to read the contents of a directory within the web context to get image file names to be used as graphicImages.  I can't find any references to how I can get the absolute path of the web context on the file server in my backing bean.


      Does anyone know how this is done. Again, this will be used by my backing bean to find my images directory and then read the files within that directory.


      Thanks for any thoughts - Peter