Results 1 to 2 of 2

Thread: SimpleFormController or AbstractFormController

  1. #1
    Join Date
    Apr 2006
    Posts
    13

    Default 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. #2
    Join Date
    Jul 2005
    Location
    Russia
    Posts
    118

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •