<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
 * 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.
 */
-->
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
        "https://struts.apache.org/dtds/struts-6.0.dtd">
<struts>
    <constant name="struts.beanValidation.providerClass" value="org.hibernate.validator.HibernateValidator"/>
    <constant name="struts.beanValidation.ignoreXMLConfiguration" value="false"/>
    <constant name="struts.beanValidation.convertMessageToUtf" value="false"/>
    <constant name="struts.beanValidation.convertMessageFromEncoding" value="ISO-8859-1"/>

    <bean type="org.apache.struts.beanvalidation.validation.interceptor.BeanValidationManager"
          class="org.apache.struts.beanvalidation.validation.interceptor.DefaultBeanValidationManager"
          scope="singleton"/>

    <package namespace="bean-validation" name="bean-validation-test" extends="">
        <result-types>
            <result-type name="void" class="org.apache.struts.beanvalidation.VoidResult"/>
        </result-types>
        <interceptors>
            <interceptor name="beanValidation"
                         class="org.apache.struts.beanvalidation.validation.interceptor.BeanValidationInterceptor"/>
        </interceptors>

        <action name="modelDrivenAction" class="org.apache.struts.beanvalidation.actions.ModelDrivenAction">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
        </action>
        <action name="modelDrivenActionSkipValidationByInterface" class="org.apache.struts.beanvalidation.actions.ModelDrivenAction"
            method="skipMeByInterface">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
        </action>
        <action name="fieldAction" class="org.apache.struts.beanvalidation.actions.FieldAction">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
        </action>
        <action name="fieldMatchAction" class="org.apache.struts.beanvalidation.actions.FieldMatchAction">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
        </action>
        <action name="fieldActionDoExecute" class="org.apache.struts.beanvalidation.actions.FieldActionDoExecute">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
        </action>

        <action name="validateGroupActions" class="org.apache.struts.beanvalidation.actions.ValidateGroupAction">
            <interceptor-ref name="beanValidation"/>
            <result type="void"/>
            <allowed-methods>actionStandard, actionDefault, actionNameChecks, actionStreetChecks, actionNameAndStreetChecks, actionMultiGroupsChecks, actionLongNameChecks</allowed-methods>
        </action>

    </package>
</struts>
