PDA

View Full Version : SimpleFormController or AbstractFormController


sfunds
May 1st, 2006, 07:59 AM
Hi,

In my application I have a login screen when user fills and is authenticated he goes to 1) If temp password is set change password screen where he is requested to change password after that he goes to success view
2) if temp password is not set he goes to sucessview

Can the chanepassword screen be indepently used

I tried using LoginFormController extends Simpleformcontroller

if(user.getTemp_password().equals("")){
setSucessView("changePassword")
return modelandview(getSuccessView(),"user",user)
}
else {
setSuccessView("succes");
return modelandview(getSuccessview(),"user",user)
}

I got the view corectly but
when temp_password ="" occured and i entered data in screen in submitted
Instead of calling changePasswordValidator It called loginValidator

What should i do so that it calles chanepasswordValidator


or
is using AbstractWizardController only way out
is there a sample code available for abstractFormcontroller

Thanks

EndlessWinter
May 2nd, 2006, 05:30 AM
I think this thread will be useful for you
http://forum.springframework.org/showthread.php?t=11086