• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Connectivity

 
Chad Ka
Greenhorn
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;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
conn=DriverManager.getConnection(url,"xxx","pcs2");
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic