This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 17257

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
subject: Applet with JDBC
jQuery in Action, 3rd edition