Hello,
I don't know if you still need it, but the "correct" way is to add a
ServletContextListener. To do this, you have to implement the
ServletContextListener interface:
public class FooContextListener implements ServletContextListener {
public void contextInitialized(ServletContextEve
On 11/3/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
On 11/3/06, Patrice Le Cozler <[EMAIL PROTECTED]> wrote:
>
> 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 nam
On 11/3/06, Patrice Le Cozler <[EMAIL PROTECTED]> wrote:
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().getReal
Maybe you can
- override setServlet() and do it after the servlet had benn set
- do another servlet that will load at startup and whose only job is to
find path ...
Mike
Patrice Le Cozler a écrit :
Hi,
I want to load a property file at webapp start. Since that property
file is
located in my
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 call
5 matches
Mail list logo