I have a servlet that passes a customer id to a method in my database class,
the database class returns the details for the customer id e.g. name,
address etc. The database class is not a servlet.

1. Is this a good way to do this?
2. Where should I open the database connection - in the servlet's init() or
in the database class itself?
3. What are the things I should look out for when doing database processing
from servlets?

Thanks.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to