On 5/6/05, Joe Hertz [EMAIL PROTECTED] wrote:
In Windows that's what it means too, but this isn't Windows or Linux...it's
a JVM.
Since it wasn't obvious from the code (MessageResources used in pathnames),
let me put it another way.
The code tries to create a directory /images/userid.
If you want to get the absolute path of the application
directory use ServletContext.getRealPath(/); and pass this
to the file creating code.
Yes, I could, but this again didn't explain the behavior which turned out to
be:
Try to create \images in a servlet running under Windows
If you want to get the absolute path of the application
directory use ServletContext.getRealPath(/); and pass this
to the file creating code.
Yes, I could, but this again didn't explain the behavior which turned out to
be:
Try to create \images in a servlet running under Windows
On 5/6/05, Joe Hertz [EMAIL PROTECTED] wrote:
I have a Struts Servlet that executes the code snippet below to create a
directory.
Under Windows, this works great, the directory showing up under
C:\TOMCAT4\WEBAPPS\
Under Suze Linux, it doesn't get created, and it's not a permission
In Windows that's what it means too, but this isn't Windows or Linux...it's
a JVM.
Since it wasn't obvious from the code (MessageResources used in pathnames),
let me put it another way.
The code tries to create a directory /images/userid.
The Servlet is apparently limited in the filepath it