DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=36420>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36420 Summary: Double & Float Validator Problems with numbers less than 0 Product: Struts Version: 1.1 Final Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Validator Framework AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I have an application which requires input of numbers less than 0. They are ususally entered e.g. .45 or .4 and redisplay as e.g. 0.45 or 0.4 for an update. When I use the ValidateDOUBLE validator to assure they will convert to DOUBLES, both .45 and 0.45 return the "must be double(numeric)" error. A teacher in a recent STRUTS class suggested I change the validator to the ValidateFLOAT validator instead of ValidateDOUBLE. I tried this and it is better but I'm still finding a bug (or at least I believe it is a bug). If the the number is entered e.g. 0.49 - I get the "must be float(numeric)" error; if 0.4 - it's OK; if .4 it's OK; if it's .49, it's OK. Am I not understanding these validators (possible as I'm a newbie) or is this a bug you can help me with? Thanks for any help/enlightenment you can provide. This problem is in a system in the user system testing stage that will enter many such numbers. We can program around it by adding a validation for numeric to the action but using the STRUTS validator is much more efficient if we can get it to work. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
