diff --git a/plugins/bean-validation/pom.xml b/plugins/bean-validation/pom.xml
new file mode 100644
index 000000000..a7a02f028
--- /dev/null
+++ b/plugins/bean-validation/pom.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+ org.apache.struts
+ struts2-plugins
+ 2.5-SNAPSHOT
+
+ 4.0.0
+
+ struts2-bean-validation
+ Struts 2 Bean Validation Plugin
+ jar
+
+
+ UTF-8
+
+
+
+
+
+ javax.validation
+ validation-api
+ 1.1.0.Final
+
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.9.2
+
+
+
+
+
\ No newline at end of file
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/FieldMatch.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/FieldMatch.java
new file mode 100644
index 000000000..69bf7c87c
--- /dev/null
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/FieldMatch.java
@@ -0,0 +1,87 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts.beanvalidation.constraints;
+
+import org.apache.struts.beanvalidation.constraints.impl.FieldMatchValidator;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+
+/**
+ * Validation annotation to validate that two fields are equals.
+ * An array of fields and their matching confirmation fields can be supplied.
+ *
+ * Example, compare 1 pair of fields:
+ *
+ *
+ * @FieldMatch(first = "password", second = "confirmPassword", message = "The password fields must match")
+ *
+ *
+ * Example, compare more than 1 pair of fields:
+ *
+ * @FieldMatch.List({
+ * @FieldMatch(first = "password", second = "confirmPassword", message = "The password fields must match"),
+ * @FieldMatch(first = "email", second = "confirmEmail", message = "The email fields must match")
+ * })
+ *
+ */
+
+@Constraint(validatedBy = FieldMatchValidator.class)
+@Documented
+@Target({TYPE, ANNOTATION_TYPE})
+@Retention(RUNTIME)
+public @interface FieldMatch {
+ String message() default "Fields are not matching";
+
+ Class>[] groups() default {};
+
+ Class extends Payload>[] payload() default {};
+
+ /**
+ * @return The first field
+ */
+ String first();
+
+ /**
+ * @return The second field
+ */
+ String second();
+
+ /**
+ * Defines several @FieldMatch annotations on the same element
+ *
+ * @see FieldMatch
+ */
+ @Target({TYPE, ANNOTATION_TYPE})
+ @Retention(RUNTIME)
+ @Documented
+ @interface List {
+ FieldMatch[] value();
+ }
+}
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/impl/FieldMatchValidator.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/impl/FieldMatchValidator.java
new file mode 100644
index 000000000..9ad2d19d5
--- /dev/null
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/impl/FieldMatchValidator.java
@@ -0,0 +1,53 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts.beanvalidation.constraints.impl;
+
+import org.apache.commons.beanutils.PropertyUtils;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.apache.struts.beanvalidation.constraints.FieldMatch;
+
+import javax.validation.ConstraintValidator;
+import javax.validation.ConstraintValidatorContext;
+
+public class FieldMatchValidator implements ConstraintValidator {
+
+ private static final Logger LOG = LogManager.getLogger(FieldMatchValidator.class);
+ private String firstFieldName;
+ private String secondFieldName;
+
+ public void initialize(final FieldMatch constraintAnnotation) {
+ this.firstFieldName = constraintAnnotation.first();
+ this.secondFieldName = constraintAnnotation.second();
+ }
+
+ public boolean isValid(final Object value, final ConstraintValidatorContext context) {
+ try {
+ final Object firstObj = PropertyUtils.getProperty(value, this.firstFieldName);
+ final Object secondObj = PropertyUtils.getProperty(value, this.secondFieldName);
+ return firstObj == null && secondObj == null || firstObj != null && firstObj.equals(secondObj);
+ } catch (final Exception ex) {
+ LOG.info("Error while getting values from object", ex);
+ return false;
+ }
+
+ }
+}
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/constant/ValidatorConstants.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/constant/ValidatorConstants.java
new file mode 100644
index 000000000..a0e61f7c6
--- /dev/null
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/constant/ValidatorConstants.java
@@ -0,0 +1,41 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts.beanvalidation.validation.constant;
+
+/**
+ *
Class consisting various constant values being used within
+ * bean validation plugin
+ *
+ *
+ * These values can be overridden using struts.xml file by providing custom values.
+ *
+ */
+public final class ValidatorConstants {
+
+ public static final String PROVIDER_CLASS = "struts.beanValidation.providerClass";
+ public static final String IGNORE_XMLCONFIGURAITION = "struts.beanValidation.ignoreXMLConfiguration";
+ public static final String CONVERT_MESSAGE_TO_UTF8 = "struts.beanValidation.convertMessageToUtf";
+ public static final String CONVERT_MESSAGE_FROM = "struts.beanValidation.convertMessageFromEncoding";
+ public static final String FIELD_SEPERATOR = ".";
+ public static final String MODELDRIVEN_PREFIX = "model";
+ public static final String EMPTY_SPACE = "";
+
+}
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java
new file mode 100644
index 000000000..162e8e664
--- /dev/null
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java
@@ -0,0 +1,219 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts.beanvalidation.validation.interceptor;
+
+import com.opensymphony.xwork2.ActionInvocation;
+import com.opensymphony.xwork2.ActionProxy;
+import com.opensymphony.xwork2.ModelDriven;
+import com.opensymphony.xwork2.inject.Inject;
+import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
+import com.opensymphony.xwork2.util.AnnotationUtils;
+import com.opensymphony.xwork2.validator.DelegatingValidatorContext;
+import com.opensymphony.xwork2.validator.ValidatorContext;
+import org.apache.commons.lang3.BooleanUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.apache.struts.beanvalidation.validation.constant.ValidatorConstants;
+import org.apache.struts2.interceptor.validation.SkipValidation;
+
+import javax.validation.ConstraintViolation;
+import javax.validation.Validator;
+import java.lang.reflect.Method;
+import java.util.Collection;
+import java.util.Set;
+
+/**
+ *
+ * Bean Validation interceptor. This Interceptor do not itself provide any Bean validation functionality but
+ * works as a bridge between Bean validation implementation's like Apache Bval or Hibernate Validator and Struts2 validation mechanism.
+ *
+ *
+ * Interceptor will create a Validation Factory based on the provider class and will validate requested method or Action
+ * class. Hibernate bean validator will be used as a default validator in case of no provider class will be supplied to
+ * the interceptor.
+ *