aspose file tools*
The moose likes JDBC and the fly likes DATABASE APPLET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DATABASE APPLET" Watch "DATABASE APPLET" New topic
Author

DATABASE APPLET

MR Thakkar
Greenhorn

Joined: May 13, 2002
Posts: 6
how do i connect applet to datbase of ms-access.


Yo
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can do it the same way you do it with a java application, with minimal changes. As long as th applet and the DB are located on the same server. There is an example at Sun's site. You can also search this forum. It has been discussed a number of times.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
MR Thakkar
Greenhorn

Joined: May 13, 2002
Posts: 6
i have tried it no wbut i get the below error.
access denied(java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
MY CODE
--------

[ Edited by Dave to format code and fix smilies ]
[ May 15, 2002: Message edited by: David O'Meara ]
honey singh
Ranch Hand

Joined: Apr 26, 2002
Posts: 44
this is because of the sandbox of the explorer,as you don't have the specific privileges to do this action..It is always a problem with the applet to do this... so what you have to do is to use the policy tool and using this grant the permissions for this purpose...
u need to study for this on the following link
http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/policytool.html
try this out..it must work..
 
Consider Paul's rocket mass heater.
 
subject: DATABASE APPLET