l.log(Level.INFO, "Failed authentication", e);
resultView = getLoginView("Invalid email or password. Please try again.", getMainView());
}
if (v.isAuthenticated()) try {
CartService cs = new CartService();
l.info("retrieving cart for customerId:"+cust.getId());
req.getSession().setAttribute(SESSION_ATTRIBUTE_CART, cs.getByCustomerId(cust.getId()));
if (login.getRedirect() != null) {
l.info("redirecting to "+login.getRedirect());
resultView = new View();
resultView.setRedirectPath(login.getRedirect());