Class ParticipantServlet

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

public class ParticipantServlet
extends HttpServlet
this servlet accepts registrations from participants.


Constructor Index

 o ParticipantServlet()

Method Index

 o destroy()
Do the cleaning up
 o doPost(HttpServletRequest, HttpServletResponse)
Store all the submitted values in the database in appropriate tables
 o init(ServletConfig)
Initialise the servlet Open a database connection and get the attributes of the PERSON,PARTICIPANT tables

Constructors

 o ParticipantServlet
 public ParticipantServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initialise the servlet Open a database connection and get the attributes of the PERSON,PARTICIPANT tables

Parameters:
config - ServletConfig
Overrides:
init in class GenericServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Store all the submitted values in the database in appropriate tables

Parameters:
req - HttpServletRequest
res - HttpServletResponse
Overrides:
doPost in class HttpServlet
 o destroy
 public void destroy()
Do the cleaning up

Overrides:
destroy in class GenericServlet