Package com.jeecms.cms.web

Examples of com.jeecms.cms.web.WebErrors.ifBlank()


    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
      return errors;
    }
    if (errors.ifBlank(title, "title", 150)) {
      return errors;
    }
    if (errors.ifMaxLength(author, "author", 100)) {
      return errors;
    }
View Full Code Here


    }
    if (errors.ifMaxLength(description, "description", 255)) {
      return errors;
    }
    // 内容不能大于1M
    if (errors.ifBlank(txt, "txt", 1048575)) {
      return errors;
    }
    if (errors.ifMaxLength(tagStr, "tagStr", 255)) {
      return errors;
    }
View Full Code Here

  private WebErrors validateForgotPasswordSubmit(String username,
      String email, String captcha, HttpServletRequest request,
      HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(username, "username", 100)) {
      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
View Full Code Here

      HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(username, "username", 100)) {
      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
    if (errors.ifBlank(captcha, "captcha", 20)) {
      return errors;
    }
View Full Code Here

      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
    if (errors.ifBlank(captcha, "captcha", 20)) {
      return errors;
    }
    try {
      if (!imageCaptchaService.validateResponseForID(session
          .getSessionId(request, response), captcha)) {
View Full Code Here

      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(uid, "uid")) {
      return errors;
    }
    if (errors.ifBlank(key, "key", 50)) {
      return errors;
    }
    return errors;
  }
View Full Code Here

  }

  private WebErrors validatePasswordSubmit(Integer id, String origPwd,
      String newPwd, String email, HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(origPwd, "origPwd", 100)) {
      return errors;
    }
    if (errors.ifMaxLength(newPwd, "newPwd", 100)) {
      return errors;
    }
View Full Code Here

  private WebErrors validatePasswordSubmit(Integer id, String origPwd,
      String newPwd, String email, String realname,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(origPwd, "origPwd", 32)) {
      return errors;
    }
    if (errors.ifMaxLength(newPwd, "newPwd", 32)) {
      return errors;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.