Register / Login
I/O and Streams
finding server absolute / physical path
posted 12 years ago
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?
posted 11 years ago
System.getProperty("user.dir") will get you the current working directory. Where exactly that is will depend on your application server.
How To Ask Questions On JavaRanch
Boost this thread!
How to compile jsp's in different directory instead of tomcat work directory
deploy application in server
migrating from Jboss4.0 to websphere 6.0
Persisting the upload/ folder
request URI doubt?