You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/01/12 06:29:45 UTC
DO NOT REPLY [Bug 15913] -
Client side validation for integer doesn't work properly.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15913>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15913
Client side validation for integer doesn't work properly.
------- Additional Comments From martinc@apache.org 2003-01-12 05:29 -------
Unfortunately, the solution is not that simple. It appears that you are making
two invalid assumptions in your suggested change. You are assuming that the
value was entered as decimal, rather than hex or octal. The length comparison
will fail if the value is not decimal. You are also assuming that the earlier
check for field type determined that the field was not 'select-one'.
I suspect the real solution for this issue will involve the use of regular
expressions to verify the syntax.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>