Class MailPassword
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----MailPassword
- public class MailPassword
- extends HttpServlet
This servlet is used to mail the forgotten password to the user
-
MailPassword()
-
-
doPost(HttpServletRequest, HttpServletResponse)
- Gets the password from the DB and sends the mail.
-
init(ServletConfig)
- Initialise the servlet
MailPassword
public MailPassword()
init
public void init(ServletConfig config) throws ServletException
- Initialise the servlet
- Parameters:
- config - ServletConfig
- Overrides:
- init in class GenericServlet
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException
- Gets the password from the DB and sends the mail.
- Parameters:
- req - HttpServletRequest
- req - HttpServletResponse
- Overrides:
- doPost in class HttpServlet