jQuery in Action, 3rd edition
The moose likes Applets and the fly likes Applet with JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet with JDBC" Watch "Applet with JDBC" New topic

Applet with JDBC

hasan wasif2k1

Joined: Jan 13, 2001
Posts: 26
Can we connect Applet to a database using JDBC without using any Web Server. My programme is working using Web Server but not without it. The error it gives is
Amit Agarwal
Ranch Hand

Joined: May 09, 2001
Posts: 92
a jdbc connection is not permitted for untrusted applets, thus the security exception. u can make your applet trusted for achieving this. see another thread at http://www.javaranch.com/ubb/Forum23/HTML/001052.html for making your applet trusted.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Also, jdbc connections frequently use tcp/ip ports that get blocked by firewalls

An IDE is no substitute for an Intelligent Developer.
Ashwin Kumar

Joined: Feb 16, 2001
Posts: 1
It is normally difficult to connect an applet to a database 'coz applets have a high security model. However, it is possible thru the careful use of code............sometimes this throws a security exception esp when u r asking the applet to communicate with the system outside the java environment
I agree. Here's the link: http://aspose.com/file-tools
subject: Applet with JDBC
jQuery in Action, 3rd edition