File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes server path... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "server path..." Watch "server path..." New topic
Author

server path...

Tapan Thakkar
Greenhorn

Joined: Mar 09, 2010
Posts: 24
hello friends i am creating a file upload and download application.

i want to upload all files on my server. i am using tomcat and it is in "/opt/Portique/liferay-portal-5.2.4/tomcat-6.0.18".

now i want to upload my files to the webapps directory of tomcat.

how can i get path of this tomcat server in java.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41123
    
  45
By "upload", do you mean via HTTP? If so, then the servlet context has the getRealPath method that returns the file system path that corresponds to a web app-relative URL.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server path...
 
Similar Threads
File upload
save a file using jspsmartupload
Upload all the files in the directory to server
Getting Installation Path of Webserver
uploading files in JSP