1. opensymphony
  2. xwork

Source

xwork / src / test / com / opensymphony / xwork / TestBean-expressionValidation-validation.xml

1
2
3
4
5
6
7
8
9
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd">
<validators>
    <field name="name">
        <field-validator type="fieldexpression">
            <param name="expression">name.length() > 5</param>
            <message>Name must be greater than 5 characters, it is currently '${name}'</message>
        </field-validator>
    </field>
</validators>