This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle JDBC via an Applet" Watch "Oracle JDBC via an Applet" New topic
Author

Oracle JDBC via an Applet

John Spindler
Greenhorn

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.
Jamie
John Spindler
Greenhorn

Joined: Feb 12, 2002
Posts: 28
Jamie,
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: http://aspose.com/file-tools
 
subject: Oracle JDBC via an Applet
 
Similar Threads
Applet connection to DB on webserver
Signed Applets unable to gain port access on client
applet error
Help with cross platform capability of Sockets
Socket Permissions