Hi Experts,
Here I am getting problem when I am accessing oracle datatbase through applet program .
It is getting compiled by using "javac appjdbc.java"
When I am entering "appletviewer appjdbc.java" the data is not displayed .It shows error like follows.
Can't find Database driver class:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc).
Please help me out in solving this problem.
I have used Type 1 driver. and <applet/> and dsn created and tested it is ok when I tested.
Advance Thanks
Bye
TulsiRam
-
Applet Jdbc Connection (1 messages)
- Posted by: Chitti Babu
- Posted on: January 03 2006 05:20 EST
Threaded Messages (1)
- Applet Jdbc Connection by Sowmya Sridhar on January 04 2006 14:14 EST
-
Applet Jdbc Connection[ Go to top ]
- Posted by: Sowmya Sridhar
- Posted on: January 04 2006 14:14 EST
- in response to Chitti Babu
applet should not - in theory look at databases directly - it is a bad design strategy. Make sure that the jdbc driver and other jar files required are packaged in the applet jar itself. The best way to use applets (if u have to use them) is to have a servlet hosted in a web container and have the applet connect to the servlet. Examples are there for this in any basic servlet textbook