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.

[584 byte] By [akhilja] at [2007-10-2 17:49:14]
# 1
if you are using unsigned applets then you cannot create a file on user machine according to JVM policy...You have to use signed applets only to use client side machine resource such as create a file or grant some permissions and so on..
ShivaKatulaa at 2007-7-13 19:07:21 > top of Java-index,Security,Signed Applets...
# 2
I am able to create a file using unsigned applet when I specify the name of the file in the policy.The problem is when I try to use wild card character /* to create any file in the folder. Any ideas..?
akhilja at 2007-7-13 19:07:21 > top of Java-index,Security,Signed Applets...