can someone help me wih this please? Thanks.

From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: user@struts.apache.org
Subject: validation of two form properties
Date: Tue, 08 Aug 2006 15:50:58 -0400

have form properties a and b

have to validate that property b is an integer, greater than 0 and also greater than form property a.

<field property="b" depends="integer,validwhen">
               <msg name="integer" key="errors.notvalid"/>
               <msg name="validwhen" key="errors.notvalid"/>
               <var>
                   <var-name>test</var-name>
<var-value>( (*this* >= 0) and (*this* >= a) )</var-value>
               </var>
           </field>

tried using the above. but not working. getting error message even when the form property is greater than zero and greater than a.

what is missing here? Thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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

Reply via email to