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 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/. The Servlet is apparently limited in the filepath it gets to wo

Directory Creation in Servlet Question

2005-05-05 Thread Joe Hertz
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 problem. At least not under the webapps directory. The Tomcat

Tomcat for Windows WebApp deletion problem?

2004-02-05 Thread Joe Hertz
On a Win2K box, I had a Struts application in it's own context. Tomcat 4.1.27 and IIS 5 using JK2. Because the JSP pages needed access to files that were normally served up by the IIS Server, I created a Junction (Windows/NTFS 5.0's version of a Symbolic Link) to the directories I needed. Work