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