<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
    <field name="name">
        <field-validator type="requiredstring" short-circuit="true">
            <message>You must enter a name.</message>
        </field-validator>
    <field-validator type="fieldexpression">
        <param name="expression">name == 'test'</param>
        <message>Name is invalid</message>
    </field-validator> 
    </field>
    <field name="birth">
        <field-validator type="date">
            <param name="min">01/01/1970</param>
            <message>You must have been born after 1970.</message>
        </field-validator>
    </field>
    <field name="count">
        <field-validator type="conversion">
            <message>Count must be an integer.</message>
        </field-validator>
    </field>
</validators>
