users@glassfish.java.net

Resolving the webroot directory

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Jan 2010 14:48:14 PST

Hi,

In my application I want users to be able to upload files to my server. Once uploaded, I want them to be accessible directly via HTTP, eg: http://mysite/a/directory/a_file

My understanding is that to do this I need the files to be placed under the webroot directory. How can I discover the location of this directory at runtime?
[Message sent by forum member 'agentjava' (tmurison_at_spectrumdt.com)]

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