Struts Validator floatRange has roundoff error
- From: "m_p_v_13" <m_p_v_13@xxxxxxxxx>
- Date: 30 Sep 2005 08:40:15 -0700
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?
What is the best way to work around it?
Thanks,
Michael
.
- Prev by Date: Re: Name that anti-pattern
- Next by Date: Re: Under Linux, Call java from C++
- Previous by thread: OpenCms Help with index.html
- Next by thread: Re: JNI C++ importatn process
- Index(es):