File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servletrunner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servletrunner" Watch "servletrunner" New topic


manav k

Joined: Oct 30, 2000
Posts: 19
i have a servlet that writes file on the server but i am having some problems with the path. Even though i set the path and the root with the -r and -d option of the servletrunner it still writes the file to the default directory (just ../ of the servletrunner executable) though it reads the property file OK can anyone guess why this is happening

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
That is the expected behavior of Java if you dont specify a path when opening a file. Why not include a complete path in the properties file?
It is sorta covered in the JavaRanch Style Guide.
subject: servletrunner
It's not a secret anymore!