Class ChangePwdServlet

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

public class ChangePwdServlet
extends HttpServlet
implements SingleThreadModel
A class for handling the Password change servlet. This is for the general users who will change their passwords. Likely to be mostly by users who would obviously not take a liking for the random passwords generated by RandGen.java ;-) [Note]: Root can change anybody's passwords thru rootChangedPasswd.java


Constructor Index

 o ChangePwdServlet()

Method Index

 o changePasswd(String, String, String, int)
A method to change the password.
 o doPost(HttpServletRequest, HttpServletResponse)
 o init(ServletConfig)

Constructors

 o ChangePwdServlet
 public ChangePwdServlet()

Methods

 o init
 public void init(ServletConfig cfg) throws ServletException
Overrides:
init in class GenericServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws ServletException, IOException
Overrides:
doPost in class HttpServlet
 o changePasswd
 public void changePasswd(String uname,
                          String pwd,
                          String newpwd,
                          int done) throws SQLException
A method to change the password.

Parameters:
uname - User Name
pwd - User Password
newpwd - New User Password
done - Takes values ={0,1,2}
Returns:
Nothing