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
-
AdminLoginServlet()
-
-
adminLoginError(PrintWriter)
- Invoked if the login was wrong.
-
adminLoginPage(PrintWriter)
- Invoked if administrator login is correct.
-
doGet(HttpServletRequest, HttpServletResponse)
- Performs the HTTP GET operation; the default implementation
reports an HTTP BAD_REQUEST error.
-
doPost(HttpServletRequest, HttpServletResponse)
-
Performs the HTTP POST operation; the default implementation
reports an HTTP BAD_REQUEST error.
AdminLoginServlet
public AdminLoginServlet()
adminLoginError
public void adminLoginError(PrintWriter pw)
- Invoked if the login was wrong. Prints error and returns you to login.
- Parameters:
- pw - The PrintWriter
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
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
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