Project 3

cscie259.project3.wahoo
Class Login

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycscie259.project3.wahoo.WahooServlet
              extended bycscie259.project3.wahoo.Login
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Login
extends WahooServlet

This servlet logs the user into the Wahoo portal. You MAY modify this file.

Version:
6.0
Author:
Computer Science E-259, YOUR NAME GOES HERE
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
Login()
           
 
Method Summary
 void displayLoginForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String error)
          Displays the login form, with an optional error string.
protected  void doWork(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Presents user with login screen and processes login attempts and account creations.
 
Methods inherited from class cscie259.project3.wahoo.WahooServlet
doGet, doPost, forward, init, redirect
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Login

public Login()
Method Detail

displayLoginForm

public void displayLoginForm(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             java.lang.String error)
                      throws java.io.IOException,
                             javax.servlet.ServletException
Displays the login form, with an optional error string.

Parameters:
request - HTTP request object
response - HTTP response object
error - optional error string
Throws:
java.io.IOException - if an IO-related error occurs
javax.servlet.ServletException - if a servlet-related error occurs

doWork

protected void doWork(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws java.io.IOException,
                      javax.servlet.ServletException
Presents user with login screen and processes login attempts and account creations.

Specified by:
doWork in class WahooServlet
Parameters:
request - HTTP request object
response - HTTP response object
Throws:
java.io.IOException - if a file-related error occurs
javax.servlet.ServletException - if a servlet-related error occurs

Project 3