Re: directory reference

2003-12-01 Thread Giorgio Franceschetti
Thanks, it solves my problems. Bye, Giorgio Tim Funk wrote: The best way is to use ServletContext.getResourceAsStream() to load a file from your webapp. This is portable (and safest) to any servlet container. -Tim Giorgio Franceschetti wrote: Hi all, I'd like to create a file with

Re: directory reference

2003-11-28 Thread John Sidney-Woollett
Why not use a Properties file which you can get the class loader to locate for you using call similar to: properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(/myfile.properties)); Just place the file at the root level of your (web project) source tree, so that it

Re: directory reference

2003-11-28 Thread Tim Funk
The best way is to use ServletContext.getResourceAsStream() to load a file from your webapp. This is portable (and safest) to any servlet container. -Tim Giorgio Franceschetti wrote: Hi all, I'd like to create a file with some configuration details for my application. I tryed to reference