struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fea jabi" <zy...@hotmail.com>
Subject RE: validation of two form properties
Date Wed, 09 Aug 2006 12:56:41 GMT
can someone help me wih this please? Thanks.


>From: "fea jabi" <zyxrm@hotmail.com>
>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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>

_________________________________________________________________
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message