----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- Just use a static object to keep track the connection to database. Sun JunXu <[EMAIL PROTECTED]> wrote: ----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- hi, all in a servlet, I have a database connection, named for example "Conn", I want to use this connection in several servlets. Can I leave it there, don't close it in first servlet, then I can use it in next servlet? how to do this? thanks. sincerely sun -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED] ____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]