Class SQLServlet
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----SQLServlet
- public class SQLServlet
- extends HttpServlet
-
SQLServlet()
-
-
getConnection()
-
-
getConnection(String, String)
- Function for establishing a connection
-
init(ServletConfig)
- Ths init Method .
SQLServlet
public SQLServlet()
init
public void init(ServletConfig config) throws ServletException
- Ths init Method . Gets the connection
- Overrides:
- init in class GenericServlet
getConnection
public Connection getConnection(String name,
String passwd) throws SQLException
- Function for establishing a connection
getConnection
public Connection getConnection() throws SQLException