• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

ojdbc connection through Applet from a Browser.

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic