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.
-
LoginServlet()
-
-
doPost(HttpServletRequest, HttpServletResponse)
- Checks whether the username and password are valid
If yes, then redirect to the appropriate servlet.
-
init(ServletConfig)
- Initialise the servlet
LoginServlet
public LoginServlet()
init
public void init(ServletConfig config) throws ServletException
- Initialise the servlet
- Overrides:
- init in class GenericServlet
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