You can use two method. Define into the tags <%! %>, the methods jspInit() and
jspDestroy().

When the servlet transforms the jsp into a servlet, it puts the code of this
methods in the corresponding init() and destroy() servlet methods.

Example:

<%!
   public void jspInit() {
      // Your database initialization.
   }

   public void jspDestroy() {
      // Your database connections liberalizations.
   }

%>

Sergio Queijo Diaz.
Soluziona - ISF

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to