aspose file tools*
The moose likes JDBC and the fly likes using Ms access and jdbc not able to get the output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "using Ms access and jdbc not able to get the output" Watch "using Ms access and jdbc not able to get the output" New topic
Author

using Ms access and jdbc not able to get the output

shanthi naidu
Ranch Hand

Joined: Nov 13, 2008
Posts: 39
hi all i am using microsoft access for the 1st time.. before that i used oracle 9i and sql server.. i also want to deal with access database ..i just simply want to insert two values in my datatable created in access..

my DNS name is "db1" and my datatable name is "DriverDetails"

The code goes like this..




and my servlet code is...




The problem is when i insert values in the html page and click on the submit button i am only getting the output as "hello"

Please suggest me what to do..

thanks,
Shanthi Naidu.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18903
    
    8

You are not committing the update, nor do you close the connection. Doing either of those things should cause the update to be visible. However closing the connection is mandatory in web applications. I'm surprised you haven't run into problems with Oracle, if you didn't close your connections.
 
 
subject: using Ms access and jdbc not able to get the output