struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: Help Validating Accepted/Not Accepted radio buttons
Date Fri, 03 Dec 2004 00:11:07 GMT
From: "Jim Barrows" <jbarrows@sssc.com>
> <!--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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message