Class rootChangedPassword
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----rootChangedPassword
- public class rootChangedPassword
- extends HttpServlet
A servlet to allow the root to change anyone's password.
-
rootChangedPassword()
-
-
changePasswd(String, String)
- A method to change the passwd.
-
doPost(HttpServletRequest, HttpServletResponse)
- Method to process the posted form
-
init(ServletConfig)
- A method to initialize the servlet.
rootChangedPassword
public rootChangedPassword()
init
public void init(ServletConfig cfg) throws ServletException
- A method to initialize the servlet.
- Overrides:
- init in class GenericServlet
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException
- Method to process the posted form
- Parameters:
- req - HttpServletRequest instance
- res - HttpServletResponse instance
return Nothing
- Overrides:
- doPost in class HttpServlet
changePasswd
public void changePasswd(String uname,
String newpwd) throws SQLException
- A method to change the passwd.
- Parameters:
- uname - Username
- newpwd - New Password
- Returns:
- Nothing