<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.dtd">
<validators>
    <field name="horse">
        <field-validator type="requiredstring">
            <param name="trim">false</param>
            <message>noTrim</message>
        </field-validator>
        <field-validator type="requiredstring">
            <param name="trim">true</param>
            <message>trim</message>
        </field-validator>
    </field>

    <field name="cow">
        <field-validator type="stringlength">
            <param name="trim">false</param>
            <param name="minLength">5</param>
            <message>noTrim-min5</message>
        </field-validator>
        <field-validator type="stringlength">
            <param name="trim">false</param>
            <param name="minLength">5</param>
            <param name="maxLength">10</param>
            <message>noTrim-min5-max10</message>
        </field-validator>
        <field-validator type="stringlength">
            <param name="trim">false</param>
            <param name="maxLength">10</param>
            <message>noTrim-max10</message>
        </field-validator>
    </field>

    <field name="donkey">
        <field-validator type="stringlength">
            <param name="trim">true</param>
            <param name="minLength">5</param>
            <message>trim-min5</message>
        </field-validator>
        <field-validator type="stringlength">
            <param name="trim">true</param>
            <param name="minLength">5</param>
            <param name="maxLength">10</param>
            <message>trim-min5-max10</message>
        </field-validator>
        <field-validator type="stringlength">
            <param name="trim">true</param>
            <param name="maxLength">10</param>
            <message>trim-max10</message>
        </field-validator>
    </field>

</validators>
