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.


Constructor Index

 o rootChangedPassword()

Method Index

 o changePasswd(String, String)
A method to change the passwd.
 o doPost(HttpServletRequest, HttpServletResponse)
Method to process the posted form
 o init(ServletConfig)
A method to initialize the servlet.

Constructors

 o rootChangedPassword
 public rootChangedPassword()

Methods

 o init
 public void init(ServletConfig cfg) throws ServletException
A method to initialize the servlet.

Overrides:
init in class GenericServlet
 o 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
 o changePasswd
 public void changePasswd(String uname,
                          String newpwd) throws SQLException
A method to change the passwd.

Parameters:
uname - Username
newpwd - New Password
Returns:
Nothing