Hi,
Servlet need not be a Bean,   Create the connection object in init() and then pass the same to Bean. and disconnect the connection in destroy() method.
Yours,
Chandrasekhar Naidu
 
 
----- Original Message -----
From: Ben Dudley
Sent: Wednesday, August 25, 1999 6:36 PM
Subject: Bean Database connection

I'm new to Java and I'm trying to connect to an Access database using the servlet ->bean -> JSP model. I understand that when using servlets to connect to a database you start the connection in the init(). How do I manage the database connection from the Bean ? Should the bean be a servlet ?
 
Thanks
 
Ben Dudley

Reply via email to