Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Database Connectivity

Chad Ka
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created an applet in Visual Cafe and when I run/debug it through Visual Cafe, it runs as expected. However, when I reference the java class with an HTML file and try and view that file with Internet Explorer, Internet Explorer shuts down.
Here is the code for connecting to an oracle database:
String DSN = "oracle";
String url = "jdbc dbc:" + DSN;
Connection conn;
Statement stmt;
stmt = conn.createStatement();
ResultSet rs;
How do I get my database connection to not only work when I run in Visual Cafe but also when I reference the class file with an HTML file? Thanks
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!