• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Policy File?

 
Veerabhadram Mantha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using an applet in a jsp application. There is a save button in the applet, when i hit the save button, control should return back to the jsp application. However this is not happening.
Since i am using applet,it seems that it cannot use the system resources. so i need to set the policy file.i hope i am interpreting the problem correct.Can anyone please guide me the procedure to give the permission in the policy file.

Thanks in advance

Regards,
Veerabhadram
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what you are trying to do.
If you are trying to save data locally on the client, you can set the policy file or digitally sign the applet. Both are problematic. Setting the policy file would have to be done manually on each client before the app is run. Not easy. A digital certificate cost money (See the Java tutorial: Applet Security Restrictions).
You can, however, upload your data to the server and use AppletContext to have the browser download the file for you (via the showDocument() method). This method can also change the page that is displayed, so you can return control back to your jsp app.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic