File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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[AppletJdbc.init]
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 for making your applet trusted.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305

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

Customer surveys are for companies who didn't pay proper attention to begin with.
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:
subject: Applet with JDBC