Hi,
I want to load a property file at webapp start. Since that property file is
located in my webapp's directory structure, I want to be able to determine
its absolute name at runtime.
I tried "this.getServlet().getServletContext().getRealPath(PROPS_FILE)" but
"getServlet()" returns null when called from an Action constructor.
Why ?
Is there another way to achieve the same result ? I can't use
MessageResources because it depends on the actual httpRequest instance.

Thanks in advance

Patrice

Reply via email to