// Extract attributes we will need
HttpSession session = request.getSession();
ActionErrors errors = new ActionErrors();
UserDAO userDAO = UserDAO.getInstance();
FogotPasswordForm fpForm = (FogotPasswordForm) form;
try {
User updateduser = userDAO.setNewPassword(fpForm.getEmail(),
fpForm.getUid());
if (updateduser.getStatus() == 0) {
errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("user.EMERROR"));
} else {