Package com.opensymphony.xwork2.validator

Examples of com.opensymphony.xwork2.validator.DelegatingValidatorContext.addActionError()


          Throwable cause = e.getCause();
          if (cause != null) {
            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
View Full Code Here


            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
        return Struts2Constants.ERROR;
      }
View Full Code Here

        if (multiWrapper.hasErrors()) {
            for (Iterator errorIter = multiWrapper.getErrors().iterator(); errorIter.hasNext();) {
                String error = (String) errorIter.next();

                if (validation != null) {
                    validation.addActionError(error);
                }

                log.error(error);
            }
        }
View Full Code Here

        MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) request;

        if (multiWrapper.hasErrors()) {
            for (String error : multiWrapper.getErrors()) {
                if (validation != null) {
                    validation.addActionError(error);
                }

                LOG.warn(error);
            }
        }
View Full Code Here

    } catch (Exception e) {
      if (this.exceptionsList.contains(e.getClass())) {
        Object action = invocation.getAction();
        if (action instanceof ValidationAware) {
          ValidationAware va = (ValidationAware) action;
          va.addActionError(e.getMessage());
        }
        this.log.warn(e.getMessage(), e);
        return Constants.ERROR;
      }
      throw e;
View Full Code Here

        MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) request;

        if (multiWrapper.hasErrors()) {
            for (String error : multiWrapper.getErrors()) {
                if (validation != null) {
                    validation.addActionError(error);
                }
            }
        }

        // bind allowed Files
View Full Code Here

        MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) request;

        if (multiWrapper.hasErrors()) {
            for (String error : multiWrapper.getErrors()) {
                if (validation != null) {
                    validation.addActionError(error);
                }

                if (LOG.isWarnEnabled()) {
                    LOG.warn(error);
                }
View Full Code Here

        MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) request;

        if (multiWrapper.hasErrors()) {
            for (String error : multiWrapper.getErrors()) {
                if (validation != null) {
                    validation.addActionError(error);
                }

                LOG.warn(error);
            }
        }
View Full Code Here

          Throwable cause = e.getCause();
          if (cause != null) {
            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
View Full Code Here

            while (cause.getCause() != null) {
              cause = cause.getCause();
            }
            va.addActionError(cause.getMessage());
          } else {
            va.addActionError(e.getMessage());
          }
        }
        this.log.warn(e.getMessage(), e);
        return Struts2Constants.ERROR;
      }
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.