From: "Jim Barrows" <[EMAIL PROTECTED]>
> <!--The magic bit that can do what you want: -->
>    <msg
>        name="mask"
>        key="registrationForm.lastname.maskmsg"/>

Thank, Jim!  This this is exactly what I needed:

      <field property="acceptTerms" depends="validwhen">
        <msg
          name="validwhen"
          key="error.acceptTerms"/>
        <var>
            <var-name>test</var-name>
            <var-value>(*this* == "Y")</var-value>
          </var>
      </field>

[The bit you quoted from
http://struts.apache.org/userGuide/dev_validator.html is in serious need of
some commas!]

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to