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
-
ChangePwdServlet()
-
-
changePasswd(String, String, String, int)
- A method to change the password.
-
doPost(HttpServletRequest, HttpServletResponse)
-
-
init(ServletConfig)
-
ChangePwdServlet
public ChangePwdServlet()
init
public void init(ServletConfig cfg) throws ServletException
- Overrides:
- init in class GenericServlet
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException
- Overrides:
- doPost in class HttpServlet
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