This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes ojdbc connection through Applet from a Browser. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "ojdbc connection through Applet from a Browser." Watch "ojdbc connection through Applet from a Browser." New topic
Author

ojdbc connection through Applet from a Browser.

Eoin Mac Aoidh
Ranch Hand

Joined: May 19, 2005
Posts: 48
I am attempting to connect to an oracle Database via an applet.
My code seems fine, as it works from my JDE's Supplied applet viewer.
I think my problem is the code in the HTML file I am using to display the applet.
I use the following (without ojdbc14.jar, and without connecting to the DB) to run the applet, where "myApplet is the applet I have written.:

Ive tried a few different things but they dont seem to work -
If anyone could advise me on how to include ojdbc.jar in this code that would be great, as Im really stuck!!!
Thanks,

Eoin.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
A browser will not honor any of the params, so if those are supposed to make the JVM do something automatically, it won't work.
Also, is the DB on the same host from where the applet is served? If not, it wouldn't work, because applets can only connect to the host from which they were served.
What exactly isn't working? Any exceptions?


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ojdbc connection through Applet from a Browser.
 
Similar Threads
Applet in web application
parameter to applet problems
Help!!- Not able to an Applet method from javascipt - throws error "not a function"
Pas a Java Object into an Applet
Creating Charts in Applets using Data from Database