All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tejas.LoginServlet

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

public class LoginServlet
extends HttpServlet
This class provides a login page for each event

Author:
Tejas Iyer

Constructor Index

 o LoginServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
Processes all get requests and prints a form for logging in the user/event-organiser/subevent-organiser
 o doPost(HttpServletRequest, HttpServletResponse)
Verifies the userid, password and recognises the class of the user
 o goChoice(HttpSession, PrintWriter, String, String, String, int)

Constructors

 o LoginServlet
 public LoginServlet()

Methods

 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res) throws ServletException, IOException
Processes all get requests and prints a form for logging in the user/event-organiser/subevent-organiser

Parameters:
req - the HttpServletRequest sent by the form/page
res - the HttpServletResponse contains the response for the request
Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest request,
                    HttpServletResponse response) throws ServletException, IOException
Verifies the userid, password and recognises the class of the user

Parameters:
req - the HttpServletRequest which generated the post
res - the HttpServletResponse contains the response for the request
Overrides:
doPost in class HttpServlet
 o goChoice
 public void goChoice(HttpSession session,
                      PrintWriter pw,
                      String userid,
                      String eventid,
                      String subeventid,
                      int usertype)

All Packages  Class Hierarchy  This Package  Previous  Next  Index