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 com.ms.security.SecurityExceptionEx[AppletJdbc.init]
Amit Agarwal
Ranch Hand
Joined: May 09, 2001
Posts: 92
posted
0
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.
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
Greenhorn
Joined: Feb 16, 2001
Posts: 1
posted
0
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