Class SQLServlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----SQLServlet

public class SQLServlet
extends HttpServlet

Constructor Index

 o SQLServlet()

Method Index

 o getConnection()
 o getConnection(String, String)
Function for establishing a connection
 o init(ServletConfig)
Ths init Method .

Constructors

 o SQLServlet
 public SQLServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Ths init Method . Gets the connection

Overrides:
init in class GenericServlet
 o getConnection
 public Connection getConnection(String name,
                                 String passwd) throws SQLException
Function for establishing a connection

 o getConnection
 public Connection getConnection() throws SQLException