String access_error,
@RequestParam(value = "login_error", required = false)
String login_error, ModelMap map)
throws InfrastructureException {
AuthenticationException authExcept = (AuthenticationException) req
.getSession()
.getAttribute(
AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY);
// parameter may be on param line if we're redirect:ed here
// (createUserController)
map.addAttribute("message", req.getParameter("message"));
if (authExcept != null) {
String message = authExcept.getMessage();
log.info("Login Error " + message + " uname: "
+ req.getParameter("j_username"));
map.addAttribute("login_error", message);
}
if (access_error != null) {