Class LoginServlet

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

public class LoginServlet
extends HttpServlet
This servlet checks the userId and password for the user and then if valid, takes him to his servlet eg the reviewer to ReviewerServlet.It also enters the necessary info into the session. NOTE: The userId for contact-author will be the paperId given to him for that paper.


Constructor Index

 o LoginServlet()

Method Index

 o doPost(HttpServletRequest, HttpServletResponse)
Checks whether the username and password are valid If yes, then redirect to the appropriate servlet.
 o init(ServletConfig)
Initialise the servlet

Constructors

 o LoginServlet
 public LoginServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initialise the servlet

Overrides:
init in class GenericServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Checks whether the username and password are valid If yes, then redirect to the appropriate servlet.

Parameters:
req - HttpServletRequest - the request
res - HttpServletResponse - the response for the request
Overrides:
doPost in class HttpServlet