<!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="email">
        <field-validator type="required" short-circuit="true">
            <message>You must enter a value for email.</message>
        </field-validator>
    </field>
    <field name="email2">
        <field-validator type="required" short-circuit="true">
            <message>You must enter a value for email2.</message>
        </field-validator>
    </field>
    <validator type="expression" short-circuit="true">
        <param name="expression">email.equals(email2)</param>
        <message>Email not the same as email2</message>
    </validator>
</validators>
