This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servletrunner" Watch "servletrunner" New topic
Author

servletrunner

manav k
Greenhorn

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

manav
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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?
Bill
 
 
subject: servletrunner
 
Similar Threads
SOS
How to run Servlets?
where to place servlet class file
new to servlets, need help !
problem with localhost