ModelAndView modelAndView = new ModelAndView("passKey");
return modelAndView;
} else {
System.out.println("check1");
PassKey passKeyTemp = passKeyBO.findPassKey(passKey.getPassKey());
System.out.println("check2");
ModelAndView modelAndView;
if(passKeyTemp != null)
{
System.out.println("check3");
if(passKeyTemp.isAccountType())
{
session.setAttribute("passkey", passKeyTemp.getPassKey());
session.setAttribute("passkeycheck", "true");
modelAndView = new ModelAndView("redirect:/ExternalRegistration");
}
else
{
session.setAttribute("passkey", passKeyTemp.getPassKey());
session.setAttribute("passkeycheck", "true");
modelAndView = new ModelAndView("redirect:/InternalRegistration");
}
return modelAndView;
}