All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tejas.ChangePasswordServlet

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

public class ChangePasswordServlet
extends HttpServlet
This class implements a HttpServlet for changing the user password

Author:
Tejas Iyer

Constructor Index

 o ChangePasswordServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
Processes all get requests and prints a form for submission of userid and passwords Passwords shall be changed only by a post method
 o doPost(HttpServletRequest, HttpServletResponse)
Communicates with the Authenticator to verify the password and then proceeds to change it.
 o init()
Init method of the servlet

Constructors

 o ChangePasswordServlet
 public ChangePasswordServlet()

Methods

 o init
 public void init()
Init method of the servlet

 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res) throws ServletException, IOException
Processes all get requests and prints a form for submission of userid and passwords Passwords shall be changed only by a post method

Parameters:
req - the HttpServletRequest sent by the form/page
res - the HttpServletResponse contains the response for the request
Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Communicates with the Authenticator to verify the password and then proceeds to change it.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index