How do I connect to a database back-end using trusted applets?

Joe Sam Shirah

The main thing that a trusted applet buys you, in this context, is the ability to connect to a machine other than the one from which the applet was served. Otherwise, connecting is the same as explained in How can I connect from an applet to a database on the server? Note that while the answer mentions using a local JDBC driver, there are some browser classpath issues that make this problematic for wisdespread use; a type 3 or 4 driver serves the purpose better for direct database connections.