Source Code‎ > ‎src‎ > ‎in.co.sunrays.proj1‎ > ‎action‎ > ‎

ChangePasswordAction-validation.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
          "-//OpenSymphony Group//XWork Validator 1.0.3//EN"
          "http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd">
<validators>

    <field name="oldPassword">
        <field-validator type="requiredstring">
            <message>Old Password cannot be null.</message>
        </field-validator>
    </field>

    <field name="newPassword">
        <field-validator type="requiredstring">
            <message>New Password cannot be null.</message>
        </field-validator>

        <field-validator type="expression">
            <param name="expression">newPassword.equals(confirmPassword)</param>
            <message>New Password and Confirm Password not match.</message>
        </field-validator>
    </field>

</validators>
Comments