<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

<validators>

    <field name="password">
        <field-validator type="requiredstring">
            <message key="error.password.required"/>
        </field-validator>
        <field-validator type="stringlength">
            <param name="trim">true</param>
            <param name="minLength">4</param>
            <param name="maxLength">10</param>
            <message key="errors.range"/>
        </field-validator>
    </field>

    <field name="password2">
        <field-validator type="requiredstring">
            <message key="error.password2.required"/>
        </field-validator>
    </field>

    <validator type="expression">
        <param name="expression">password eq password2</param>
        <message key="error.password.match"/>
    </validator>

</validators>
