Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servletrunner

 
manav k
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic