Class ServiceBasketServlet

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

public class ServiceBasketServlet
extends HttpServlet
implements SingleThreadModel
This class shows the Service_Basket entityset details and provides an interface to add new services to the set .


Constructor Index

 o ServiceBasketServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
 o doPost(HttpServletRequest, HttpServletResponse)
 o init(ServletConfig)
 o InsertintoTables(String, String, String, PrintWriter)
inserts the new values of service tag,description of the service and the keywords for the service
 o printTable(PrintWriter)

Constructors

 o ServiceBasketServlet
 public ServiceBasketServlet()

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 sertag,
                              String service,
                              String serkeyword,
                              PrintWriter pw)
inserts the new values of service tag,description of the service and the keywords for the service

Parameters:
string - sertag - service tag
string - service - description of service
serkeyword - - keywords for the service
Printwriter - pw
 o printTable
 public void printTable(PrintWriter pw)
Parameters:
PrintWriter - pw