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


Constructor Index

 o MailPassword()

Method Index

 o doPost(HttpServletRequest, HttpServletResponse)
Gets the password from the DB and sends the mail.
 o init(ServletConfig)
Initialise the servlet

Constructors

 o MailPassword
 public MailPassword()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initialise the servlet

Parameters:
config - ServletConfig
Overrides:
init in class GenericServlet
 o 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