HI, I am trying to connect the applet with the oracle database... I have tried using all different tactics....and it is giving me different problems all the time....CAn some one help me out.... TIA. The code is as under..... if(evt.target ==Button7) { System.out.println("Button Pressed"); // String query = "(INSERT INTO LANDMARK VALUES('null', 'null', 'null', 'null'))";
//*********************************Make connection with the database try { txtfield.setText(null); if (conn == null) { txtfield.append("Loading JDBC dirver " + "oracle.jdbc.driver.OracleDriver()" + "\n");
System.out.println("Registering the driver"); } // if ends.................................. System.out.println("CONNECTED TO THE DATABASE"); // String query = ("INSERT INTO LANDMARK" + " VALUES('null', 'null', 'null', 'null'))";
I agree please use code /code in future posts. More info requested 1. operating system are you using 2. what is ther version of the JDK 3. what is ther version of the JDBC 4. are you gocing to use OCI or thin client I post code about 6 to 9 months ago please search for it... I have been busy ... i will try to check back in a few day if you have any questions.
------------------ Multi-Platform Database Developer ( on E.S.T. )
Multi Platform Database Developer & DBA on E.S.T.
Monty Ireland
Ranch Hand
Joined: Oct 03, 2000
Posts: 161
posted
0
Working Code Example: <code> import java.sql.*; public class CreateCoffees { public static void main(String args[]) {