• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How i create a folder on Remote host using servlet

 
Ram kanana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic