This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 41124
    
  45
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
 
Similar Threads
how to detect MS excel using servlet?
JSP/Servlet With MS Excel?
storing and retriveing image through Ms-sql
How to pass data from a Java Applet
JSP to hibernate