my dog learned polymorphism*
The moose likes JDBC and the fly likes how to connect to MS-Access from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to connect to MS-Access from jsp" Watch "how to connect to MS-Access from jsp" New topic
Author

how to connect to MS-Access from jsp

Venkatesh Manohar
Greenhorn

Joined: Dec 27, 2006
Posts: 12
I have created a table named login which is in c:/db1 using MS-Access.It has two fields username and password.i want to know how make connection to this tabl from jsp.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
Welcome to JavaRanch.

Do you have experience with JDBC (the Java database access API)? If not, start with the Sun JDBC tutorial.

To make a Connection to Access, you;d use the JDBC/ODBC bridge driver; it's described here.

Lastly, it's generally considered bad design to do any DB stuff directly in a JSP. Consider using a servlet or a backing bean instead.


Ping & DNS - my free Android networking tools app
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
You can make use of JDBC for this purpose. Following is a sample code:


Hope you got an idea.


RAGHU<br /> <br />"When the going gets tough, the tough get going"
Venkatesh Manohar
Greenhorn

Joined: Dec 27, 2006
Posts: 12
Thank You.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to connect to MS-Access from jsp