Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 95037 invoked from network); 4 Mar 2003 00:19:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Mar 2003 00:19:58 -0000 Received: (qmail 27026 invoked by uid 97); 4 Mar 2003 00:21:43 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@nagoya.betaversion.org Received: (qmail 27019 invoked from network); 4 Mar 2003 00:21:42 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Mar 2003 00:21:42 -0000 Received: (qmail 94372 invoked by uid 500); 4 Mar 2003 00:19:50 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 94361 invoked from network); 4 Mar 2003 00:19:50 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Mar 2003 00:19:50 -0000 Received: (qmail 27013 invoked by uid 50); 4 Mar 2003 00:21:34 -0000 Date: 4 Mar 2003 00:21:34 -0000 Message-ID: <20030304002134.27012.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: struts-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 17622] - Client-side validation for integer creates no "alert" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=17622 Client-side validation for integer creates no "alert" ------- Additional Comments From martinc@apache.org 2003-03-04 00:21 ------- We can't just rely on parseInt(). In fact, isAllDigits() was introduced to fix a problem with just using parseInt(), namely that the latter function will stop parsing when it reaches a non-digit, rather than claiming that the value is not an integer. That is, parseInt("123abc") happily returns 123 as its value, and just ignores the "abc" on the end. However, the first suggestion you describe looks OK, although I haven't had a chance to verify the problem or try the proposed solution. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-dev-help@jakarta.apache.org