All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tejas.AdminLoginServlet

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

public class AdminLoginServlet
extends HttpServlet
This class takes a passwd entered by administrator, verifies against stored and then, either generates error or first page for administrator.

Author:
B. Aditya

Constructor Index

 o AdminLoginServlet()

Method Index

 o adminLoginError(PrintWriter)
Invoked if the login was wrong.
 o adminLoginPage(PrintWriter)
Invoked if administrator login is correct.
 o doGet(HttpServletRequest, HttpServletResponse)
Performs the HTTP GET operation; the default implementation reports an HTTP BAD_REQUEST error.
 o doPost(HttpServletRequest, HttpServletResponse)
Performs the HTTP POST operation; the default implementation reports an HTTP BAD_REQUEST error.

Constructors

 o AdminLoginServlet
 public AdminLoginServlet()

Methods

 o adminLoginError
 public void adminLoginError(PrintWriter pw)
Invoked if the login was wrong. Prints error and returns you to login.

Parameters:
pw - The PrintWriter
 o adminLoginPage
 public void adminLoginPage(PrintWriter pw)
Invoked if administrator login is correct. Generates Control page Can add events, view events, delete events, logout or change password

Parameters:
pw - PrintWriter
 o doGet
 public void doGet(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException, IOException
Performs the HTTP GET operation; the default implementation reports an HTTP BAD_REQUEST error.

Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest request,
                    HttpServletResponse response) throws ServletException, IOException
Performs the HTTP POST operation; the default implementation reports an HTTP BAD_REQUEST error.

Overrides:
doPost in class HttpServlet

All Packages  Class Hierarchy  This Package  Previous  Next  Index