views:

22

answers:

1

I have written a code in JAVA to search files from the system.User specifies the filename and extension on text input on applet window and on button click code establishes a connection to oracle database and searches the directory name from the database table.The code for searching works fine without applet and on using applet it detects an error which is

"access denied(java.util.PropertyPermissionfile.encoding read)"

How do i grant this applet the permission to read from database?

-------Thanks in advance

+2  A: 

An applet is only allowed to connect to server from where it was downloaded. Otherwise you need to sign the applet. Or use a proxy to connect to the database from the machine the applet came from.

stacker
Actually the oracle server is local..Then also do i need to use a proxy? ------Thanks in advance
hk99
According to this older doc: http://download.oracle.com/javase/1.3/docs/guide/jdbc/spec/jdbc-spec.frame5.html it should be possible.
stacker