Re: proper way to access local dir?

2004-01-16 Thread Tim Funk
If you don't care about where the files are written to, you can use javax.servlet.context.tempdir. See the spec SRV.3.7.1 Temporary Working Directories for details. If you need a permanent local directory, I prefer to use a JNDI string lookup

RE: proper way to access local dir?

2004-01-16 Thread Shapira, Yoav
Howdy, The only place the servlet specification allows you to write (and obviously read) is the directory specified as the servlet context attribute named javax.servlet.context.tempdir. The JDK also has java.io.tmpdir which you may or may not be able to use. Other than that, if you need to

Re: proper way to access local dir?

2004-01-16 Thread Daniel
Thanks Jim. I like your JNDI method - hate having to muck with settings each time I deploy on different boxes. :) Regards, Daniel On Fri, 16 Jan 2004, Tim Funk wrote: If you don't care about where the files are written to, you can use javax.servlet.context.tempdir. See the spec SRV.3.7.1

RE: proper way to access local dir?

2004-01-16 Thread Shapira, Yoav
Howdy, Thanks Jim. I like your JNDI method - hate having to muck with settings each time I deploy on different boxes. :) It's Tim, not Jim ;) And it's only a choice of which settings to tweak, not whether to tweak setting at all or not. I do it in web.xml so that none of my deployment is

RE: proper way to access local dir?

2004-01-16 Thread Daniel
On Fri, 16 Jan 2004, Shapira, Yoav wrote: Howdy, The only place the servlet specification allows you to write (and obviously read) is the directory specified as the servlet context attribute named javax.servlet.context.tempdir. The JDK also has java.io.tmpdir which you may or may not be

RE: proper way to access local dir?

2004-01-16 Thread Daniel
Thanks Jim. I like your JNDI method - hate having to muck with settings each time I deploy on different boxes. :) It's Tim, not Jim ;) And it's only a choice of which settings to tweak, Ack, my apology to Tim! I really did mean T and not J but typed that :( not whether to tweak setting

RE: proper way to access local dir?

2004-01-16 Thread Shapira, Yoav
Hola, Thanks Yoav. So.. what if it's not arbitrary and I want to put it in my webapp's dir (e.g. under WEB-INF/repo)? There wouldn't be a special way to access the directory, is there? No, no special way for writing. It's the same as an arbitrary directory that just happens to be under your

RE: proper way to access local dir?

2004-01-16 Thread Daniel
Thanks again for the ideas Yoav! Regards, Daniel On Fri, 16 Jan 2004, Shapira, Yoav wrote: Hola, Thanks Yoav. So.. what if it's not arbitrary and I want to put it in my webapp's dir (e.g. under WEB-INF/repo)? There wouldn't be a special way to access the directory, is there? No, no