wood burning stoves 2.0*
The moose likes Servlets and the fly likes How i create a folder on Remote host using servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How i create a folder on Remote host using servlet" Watch "How i create a folder on Remote host using servlet" New topic
Author

How i create a folder on Remote host using servlet

Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
Is this possible to create a folder dynamically on remote host and placed files on it using servlet.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
A servlet can use normal Java code for creating directories and files - use java.io.File class just like you would in a desktop application.
However, security restrictions on the server may prevent or limit directory and file creation. Java provides for very fine-grain control over what a servlet is allowed to do, and of course the operating system will also impose restrictions.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How i create a folder on Remote host using servlet