Re: Directory Creation in Servlet Question

2005-05-09 Thread Anto Paul
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.

RE: Directory Creation in Servlet Question

2005-05-09 Thread Joe Hertz
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

RE: Directory Creation in Servlet Question

2005-05-09 Thread Joe Hertz
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

Re: Directory Creation in Servlet Question

2005-05-06 Thread Anto Paul
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

RE: Directory Creation in Servlet Question

2005-05-06 Thread Joe Hertz
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