Package com.fengjing.framework.springmvc.handling.multipage.forms.validator

Examples of com.fengjing.framework.springmvc.handling.multipage.forms.validator.UserValidator


    return new ModelAndView("WelcomePage");
  }
 
  @Override
  protected void validatePage(Object command, Errors errors, int page) {
    UserValidator validator = (UserValidator) getValidator();
    //page is 0-indexed
    switch (page) {
       case 0: //if page 1 , go validate with validatePage1Form
      validator.validatePage1Form(command, errors);
      break;
       case 1: //if page 2 , go validate with validatePage2Form
      validator.validatePage2Form(command, errors);
      break;
       case 2: //if page 3 , go validate with validatePage3Form
      validator.validatePage3Form(command, errors);
      break;
    }
  }
View Full Code Here

TOP

Related Classes of com.fengjing.framework.springmvc.handling.multipage.forms.validator.UserValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.