ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
LoginForm lform = (LoginForm) form;
// premi�re fois
if (lform.getLogin() == null)
return (mapping.findForward("view"));
String login = lform.getLogin();
String password = lform.getPassword();
// v�rifier l'utilisateur sur le framework
try {
Mapping.begin();
User user = User.getInstance(login);
Mapping.rollback();
if (!lform.getPassword().equals(user.getPassword())) {
ActionError error = new ActionError("error.login.badPassword");
ActionErrors errors = new ActionErrors();
errors.add("password", error);
request.setAttribute(ERROR_KEY, errors);
return (new ActionForward(mapping.getInput()));