public static String forgotPassword(HttpServletRequest request,HttpServletResponse response){
  if ((UtilValidate.isNotEmpty(request.getParameter("GET_PASSWORD_HINT"))) || (UtilValidate.isNotEmpty(request.getParameter("GET_PASSWORD_HINT.x")))) {
    return showPasswordHint(request,response);
  }
 else   if ((UtilValidate.isNotEmpty(request.getParameter("EMAIL_PASSWORD"))) || (UtilValidate.isNotEmpty(request.getParameter("EMAIL_PASSWORD.x")))) {
    return emailPassword(request,response);
  }
 else {
    return "success";
  }
}

public static String forgotPassword ( HttpServletRequest request , HttpServletResponse response ) { if ( ( UtilValidate . isNotEmpty ( request . getParameter ( "GET_PASSWORD_HINT" ) ) ) || ( UtilValidate . isNotEmpty ( request . getParameter ( "GET_PASSWORD_HINT.x" ) ) ) ) { return showPasswordHint ( request , response ) ; } else if ( ( UtilValidate . isNotEmpty ( request . getParameter ( "EMAIL_PASSWORD" ) ) ) || ( UtilValidate . isNotEmpty ( request . getParameter ( "EMAIL_PASSWORD.x" ) ) ) ) { return emailPassword ( request , response ) ; } else { return "success" ; } }
the user forgot his / her password . this will call showpasswordhint , emailpassword or simply returns " success " in case no operation has been specified .
