Announcement Announcement Module
Collapse
No announcement yet.
SimpleFormController or AbstractFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleFormController or AbstractFormController

    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

  • #2
    I think this thread will be useful for you
    http://forum.springframework.org/showthread.php?t=11086

    Comment

    Working...
    X