Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

finding server absolute / physical path  RSS feed

 
Naadir Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I'm making a module for clients to upload documents, etc.
each client will have a seperate directory on the web application.
How would find the root directory of a webserver i am working on?
Is there a method or something i could use?

Thanks
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.getProperty("user.dir") will get you the current working directory. Where exactly that is will depend on your application server.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!