All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tejas.RegisterServlet

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

public class RegisterServlet
extends HttpServlet
This class allows a participant to register for an event. The participant supplies his profile information through a form and requests a user-id for a particular event.

Author:
Tejas Iyer

Constructor Index

 o RegisterServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
Processes all get requests and spews out a form for submission of user profile.
 o doPost(HttpServletRequest, HttpServletResponse)
Processes all post requests and registers the flo for the event.
 o init()
Init method of the servlet
 o printFormRow(PrintWriter, String, String, String)

Constructors

 o RegisterServlet
 public RegisterServlet()

Methods

 o init
 public void init()
Init method of the servlet

 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res) throws ServletException, IOException
Processes all get requests and spews out a form for submission of user profile.

Parameters:
req - the HttpServletRequest sent by the form/page
res - the HttpServletResponse contains the response for the request
Overrides:
doGet in class HttpServlet
 o printFormRow
 public void printFormRow(PrintWriter pw,
                          String label,
                          String inputName,
                          String inputType)
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Processes all post requests and registers the flo for the event.

Parameters:
req - the HttpServletRequest sent by the form/page
res - the HttpServletResponse contains the response for the request
Overrides:
doPost in class HttpServlet

All Packages  Class Hierarchy  This Package  Previous  Next  Index