DynaActionForm inputForm = (DynaActionForm) form;
RestaurantManager manager = new RestaurantManager();
String login = inputForm.getString("login");
String password = inputForm.getString("password");
UserInfo user = manager.findUser(login, password);
if (user != null) {
HttpSession session = request.getSession();
session.setAttribute("user", user);
return mapping.findForward(SUCCESS);
}