users@glassfish.java.net

Re: Read file from docroot

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Nov 2007 11:47:03 PST

Thanks for correcting, Jan.

But since docroot is not part of any context, it won't be possible to use
this technique to read/write files from docroot.

So, I guess the only solution is to use ClassLoader.getResourceAsStream() and then
passing the relative path. Is that right?

Thanks,
Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=244138