"and getting the error when used double." Could you explain that? Like what exactly do you input when you get the error and what you input when you do not get an error. I just found recently that struts has a bug e.g. I have a field similar to yours which is a float and has float and floatRange validations. It has to be > 0. It catches the error when I input 0 because it has to be greater than 0. But when I input 0.0, I don't get an error. Maybe yours is a similar situation.
Harsh. -----Original Message----- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 11:51 AM To: user@struts.apache.org Subject: RE: validation with validwhen no, it's not a dumb question. But yah, I do have the key right!! and getting the error when used double. Using 1.2.7 version of struts. Actually I did try ><var-value>(*this* > 0)</var-value> too but, this didn't work either. I tried, the below too <field property="fee" depends="required,double,doubleRange"> <msg name="required" key="lbl.required"/> <msg name="double" key="lbl.notvalidnumber"/> <arg1 name="doubleRange" key="${var:min}" resource="false"/> <arg2 name="doubleRange" key="${var:max}" resource="false"/> <var><var-name>min</var-name><var-value>0</var-value></var> <var><var-name>max</var-name><var-value>Double.MAX_VALUE</var-value></va r> </field> double range from above, is not working right!! whatever number I give it's gives error. any other suggessions? Thanks. >From: "Chaudhary, Harsh" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <user@struts.apache.org> >To: "Struts Users Mailing List" <user@struts.apache.org> >Subject: RE: validation with validwhen >Date: Fri, 26 May 2006 10:20:01 -0500 > >Fea, >What version of struts are you using? Dumb question, but are you sure >the key "lbl.notvalidnumber" is spelled right in your error messages >properties file. > >Harsh. > >-----Original Message----- >From: Krishnan, Vijaya [mailto:[EMAIL PROTECTED] >Sent: Friday, May 26, 2006 10:07 AM >To: Struts Users Mailing List >Subject: RE: validation with validwhen > > > and also make sure it's value is greater than Zero. > >Do you need >= or > than 0? ><var-value>(*this* > 0)</var-value> might do the trick. > >Thanks, >Vijaya > >-----Original Message----- >From: fea jabi [mailto:[EMAIL PROTECTED] >Sent: Friday, May 26, 2006 11:03 AM >To: user@struts.apache.org >Subject: RE: validation with validwhen > >Thankyou for the response. > >tried ><var-value>(*this* >= 0)</var-value> > >but still not getting error message. any other suggessions? > > > >From: "Chaudhary, Harsh" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <user@struts.apache.org> > >To: "Struts Users Mailing List" <user@struts.apache.org> > >Subject: RE: validation with validwhen > >Date: Fri, 26 May 2006 09:46:37 -0500 > > > >Instead of this: > > > > <var-value>(*this* >= 0)</var-value> > > > >Use this: > > > > <var-value>(*this* >= 0)</var-value> > > > >Its to do with how your '>' characters are parsed. > > > >Harsh. > > > >-----Original Message----- > >From: fea jabi [mailto:[EMAIL PROTECTED] > >Sent: Friday, May 26, 2006 8:01 AM > >To: user@struts.apache.org > >Subject: RE: validation with validwhen > > > > > >can someone help me with 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 with validwhen > > >Date: Thu, 25 May 2006 12:31:56 -0400 > > > > > >want to validate a property for > > > > > >required, > > >and also make sure it's value is greater than Zero. The value should > > >be > >a > > >positive double. > > > > > >tried the below > > ><field property="fee" depends="required, validwhen"> > > > <msg name="required" key="lbl.required"/> > > > <msg name="validwhen" key="lbl.notvalidnumber"/> > > > <var> > > > <var-name>test</var-name> > > > <var-value>(*this* >= 0)</var-value> > > > </var> > > > </field> > > > > > >when nothing is entered by the user, getting the required message. > > >When > > > > >entered the characters not getting the message of validwhen. > > > > > >what am I missing? > > > > > >Thanks. > > > > > >_________________________________________________________________ > > >Don't just search. Find. Check out the new MSN Search! > > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > >_________________________________________________________________ >Is your PC infected? Get a FREE online computer virus scan from >McAfee(r) Security. >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]