File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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