getRealPath problem

2002-07-11 Thread Durham David Cntr 805CSS/SCBE
Anyone know why getServletContext().getRealPath(/myApp) would return something like 'c:\webapps\myApp\myApp'? -- note the extra myApp at the end Thanks Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: getRealPath problem

2002-07-11 Thread Richard Haber
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