This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 13000
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servletrunner
 
It's not a secret anymore!