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
> 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
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/