Re: getRealPath() returning temp space path

2008-06-10 Thread Mark Thomas
David Momper wrote: In my application, I am trying to upload files to be stored in the directory [application root]/files. To get the path to write files to, I am using: request.getSession().getServletContext().getRealPath("/files"); However, this is returning the directory: "apache-tomcat-6.0

RE: getRealPath() returning temp space path

2008-06-10 Thread Caldarale, Charles R
> From: David Momper [mailto:[EMAIL PROTECTED] > Subject: getRealPath() returning temp space path > > However, this is returning the directory: > "apache-tomcat-6.0.16/temp/#-Application/files" where # > is a number 0-9. > I thought it was supposed to return t

getRealPath() returning temp space path

2008-06-10 Thread David Momper
In my application, I am trying to upload files to be stored in the directory [application root]/files. To get the path to write files to, I am using: request.getSession().getServletContext().getRealPath("/files"); However, this is returning the directory: "apache-tomcat-6.0.16/temp/#-Application/