The Struts Validator floatRange seems to have roundoff error.
For the validation.xml configuration snippet below, user input of
90.00001 fails validation, as expected, but 90.000001 does not.
<field property="baseLocalities.latitude" depends="float,floatRange">
<var>
<var-name>min</var-name>
<var-value>-90</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>90</var-value>
</var>
</field>
Is this a known problem or the expecxted behaviour?
What is the best way to work around it?
Thanks,
Michael
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]