Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use MS-Access in Tomcat 3.1

 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody :
I using Tomcat3.1 . how can i connect to my databse in msacess. Should i store the databe in particular file or else cani connect to the databse as i use to do whn i am writing an application .
Thank you
Siva
 
Sandeep Jain
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
The basic funda of connecting to the database remains the same .You write a servlet an in the init method load the driver and establish the connection.
In the service method create an object of statement . execute the same
Only difference in tomcat server u have to putr the class file in the C:\tomcat\webapps\examples\WEB-INF\classes directory.

------------------
Sandeep Jain
 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sandeep:
Thanx a lot. Thats the part i was confused with
hey ia m doina project in servlets and jsp and ia m kind of lost
do u wanna to guide me
let me know
tahnk you
siva
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic