Package org.eweb4j.mvc.action

Examples of org.eweb4j.mvc.action.Validation


      request.setAttribute(f.getName(), value);

    }

    Validation validation = new Validation();
    if (!valError.isEmpty())
      validation.getErrors().put(val.getName(), valError);
   
    return validation;
  }
View Full Code Here


*/
public class EmailValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.email_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

*/
public class IDCardValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.ID_card_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

      }

      request.setAttribute(f.getName(), value);
    }
   
    Validation validation = new Validation();
    if (!valError.isEmpty())
      validation.getErrors().put(val.getName(), valError);
   
    return validation;
   
  }
View Full Code Here

*/
public class URLValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.url_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

      request.setAttribute(f.getName(), value);

    }

    Validation validation = new Validation();
    if (!valError.isEmpty())
      validation.getErrors().put(val.getName(), valError);
   
    return validation;
  }
View Full Code Here

*/
public class ZIPValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val,
      Map<String, String[]> map, HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.ZIP_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

*/
public class IPValidator implements ValidatorIF{

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.ip_regexp).validate(val, map, request);
    return vali;
  }
View Full Code Here

*/
public class PhoneValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.phone_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

*/
public class IntegerValidator implements ValidatorIF {

  public Validation validate(ValidatorConfigBean val, Map<String, String[]> map,
      HttpServletRequest request) {
    Validation vali = new ValidatorHelper(RegexList.integer_regexp).validate(val, map,
        request);
    return vali;
  }
View Full Code Here

TOP

Related Classes of org.eweb4j.mvc.action.Validation

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.