If your application is stored at c:\webapps\myApp, then
getServletContext().getRealPath("/") will return that directory.
Anything that you add to the end is literally appended to that path.
You would usually use this to create an absolute path to a file, etc.,
so no parsing is done on what follows that '/' to see if it is an
existing path

Regards




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to