Run applet in browser using own policy

View: New views
1 Messages — Rating Filter:   Alert me  

Run applet in browser using own policy

by anycat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have been trying to run an applet with file reading and writing permissions. For this I created my own policy file granting the permissions and I could run it using 'appletviewer' in the following manner

appletviewer -J-Djava.security.policy=mypolicy MyApplet.java

But I want to use it in a web application. Is it a way to run an applet using your own policy in a browser?
I have tried changing the java.security file but it is not a feasible option as I can not do it on the client machine from the web server.
Or Do I have to invoke a batch file with the above command? Is there an attribute for the HTML tag <applet> for specifying the policy?