Class ParticipantServlet
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----ParticipantServlet
- public class ParticipantServlet
- extends HttpServlet
this servlet accepts registrations from participants.
-
ParticipantServlet()
-
-
destroy()
-
Do the cleaning up
-
doPost(HttpServletRequest, HttpServletResponse)
- Store all the submitted values in the database in appropriate tables
-
init(ServletConfig)
- Initialise the servlet
Open a database connection and get the attributes of the PERSON,PARTICIPANT tables
ParticipantServlet
public ParticipantServlet()
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
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
destroy
public void destroy()
- Do the cleaning up
- Overrides:
- destroy in class GenericServlet