jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Directory Creation On Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Directory Creation On Server" Watch "Directory Creation On Server" New topic

Directory Creation On Server

vikas malviya

Joined: Aug 06, 2009
Posts: 14
The thing deployed application does is, it allows the user of the web-app to create a folder on the server with a name of his/her choice and upload his/her files into that folder. Here is what I am getting as Exception

Caught Exception: java.security.AccessControlException: access denied (java.io.FilePermission /var/chroot/home/content/b/r/i/bringlifeto/html/MyDemoDirApp/demodir/testdir write)

Can any body explain me this issue and provide me a correct way to implement it.

Vikas Malviya
Smitesh Shinde
Ranch Hand

Joined: Feb 16, 2008
Posts: 45

Firstly look out if you have the write permissions for the folder you are trying to upload into
I agree. Here's the link: http://aspose.com/file-tools
subject: Directory Creation On Server
It's not a secret anymore!