errors.add("password", error);
request.setAttribute(ERROR_KEY, errors);
return (new ActionForward(mapping.getInput()));
}
Mapping.begin();
boolean result = new SecurityManagerImpl().canLogIntoBackoffice(user);
Mapping.rollback();
if ( !result ) {
ActionError error = new ActionError("error.login.notAuthorized");
ActionErrors errors = new ActionErrors();
errors.add("login", error);