You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2008/12/08 00:57:32 UTC

expression validator not playing by the rules

After chasing a CSS issue around tonight, I discovered the following
validation is not placing it's message in the <s:fielderror /> collection
but rather it is adding to the <s:actionerror />.  Shouldn't the validator
be adding to the field errors when a field name is specified?

    <field name="credential.password">
        <field-validator type="expression">
            <param name="expression">

credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase())
            </param>
            <message key="passwordsNotMatching" />
        </field-validator>
    </field>

Scott