Hi!
   
Here's a code snippet to get you started:
    Class.forName("sun.odbc.jdbc.OdbcJdbcDriver").newInstance(); // register your driver
    Connection con = DriverManager.getConnection("jdbc:odbc:mydb"); // mydb must be specified in the control panel under datasources
    Statement st = con.createStatement();
    // to get data
    ResultSet rs = st.executeQuery("SELECT * FROM aTable");
    while (rs.next()){...}
    // to insert data
    st,executeUpdate("Insert into aTable values("..."));
    // ... see javadocs for more things you can do.
 
Now you should read the java turorial (database access with jdbc; see java.sun.com), and a tutorial to get used to the SQL syntax.
 
-mw
----- Original Message -----
Sent: Wednesday, January 09, 2002 9:35 PM
Subject: Shopping Cart Example

Can anybody send me shopping cart example servlet using MS Access. I do not understand about Adding, Deletion and modifying parts. Please attach and send it to me directly. Or else could any body show me place where I can download.
 
Thank you in advance,
 
Nilantha
 
 

Reply via email to