Class EditCSRServlet

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

public class EditCSRServlet
extends HttpServlet
implements SingleThreadModel
This class shows the CRM_Personnel entityset details like emailid and name and provides an interface to add new CSR to the set .


Constructor Index

 o EditCSRServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
 o doPost(HttpServletRequest, HttpServletResponse)
 o init(ServletConfig)
 o InsertintoTables(String, String, PrintWriter)
inserts the new values of CSR's emailid and his/her name into the database.
 o printTable(PrintWriter)

Constructors

 o EditCSRServlet
 public EditCSRServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Overrides:
init in class GenericServlet
 o doGet
 public void doGet(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException, IOException
Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest request,
                    HttpServletResponse response) throws ServletException, IOException
Overrides:
doPost in class HttpServlet
 o InsertintoTables
 public void InsertintoTables(String emailid,
                              String csrname,
                              PrintWriter pw)
inserts the new values of CSR's emailid and his/her name into the database.

Parameters:
string - emailid - emailid of the csr
string - csrname - Name of the csr
Printwriter - pw
 o printTable
 public void printTable(PrintWriter pw)
Parameters:
PrintWriter - pw