First, JSP pages are compiled by the Web Application Server into servlets.
I don't know of a connection method that tells when it was opened.
Pooling is a somewhat advanced topic, but it is essential in a Web application server environment.
Java provides connection pooling support through JNDI (Java Naming & Directory Interface). Here's a
link.