File Permissions in Policy file using Wild Card
I am using unsigned applets.
I am trying to dynamically generate filename and create a file with that name on a local computer.
The permissions I am giving is as follows
grant {
permission java.io.FilePermission "${user.home}/-", "read,write";
}; -- This DOESNT WORK
This is not working. I am getting Access Denied error. If I give the name of file then it works fine
grant {
permission java.io.FilePermission "${user.home}/save.txt", "read,write";
}; // -- This WORKS
Please let me know what I am doing wrong here.

