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
-
ChangePasswordServlet()
-
-
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
-
doPost(HttpServletRequest, HttpServletResponse)
- Communicates with the Authenticator to verify the password
and then proceeds to change it.
-
init()
- Init method of the servlet
ChangePasswordServlet
public ChangePasswordServlet()
init
public void init()
- Init method of the servlet
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
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