File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Oracle JDBC via an Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Oracle JDBC via an Applet" Watch "Oracle JDBC via an Applet" New topic

Oracle JDBC via an Applet

John Spindler

Joined: Feb 12, 2002
Posts: 28
I am attempting access to an oracle database via an Applet. when I try it tells me "Can't connect to host." I am curious, is this allowed? To access the DB server on a box other then the Web Server with an Applet? I know there are rules with Applets and I hope that is not my problem...and if is, one of your guys will have a work around.
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

This is allowed, but you'll have to give your applet permissions (search the JDBC forum for 'sign applet') to access the database. OR you can put the jdbc code in a servlet or bean.
John Spindler

Joined: Feb 12, 2002
Posts: 28
Thanks and I read all of the post that came up with 'signed applet' search yet all of them say exactly what you are saying. "Either sign it or write a servlet" Ok I will do my homework and attempt a servlet but anyhelp or walkthrough, even a small tutorial to get me started would be great. I just began learning Java so now diving into Servlets should be fun. Anyway thanks again!
I agree. Here's the link:
subject: Oracle JDBC via an Applet
It's not a secret anymore!