Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 60313 invoked from network); 27 Feb 2003 04:23:42 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 27 Feb 2003 04:23:42 -0000 Received: (qmail 11401 invoked by uid 97); 27 Feb 2003 04:25:27 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@nagoya.betaversion.org Received: (qmail 11394 invoked from network); 27 Feb 2003 04:25:26 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 27 Feb 2003 04:25:26 -0000 Received: (qmail 59733 invoked by uid 500); 27 Feb 2003 04:23:37 -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 59722 invoked from network); 27 Feb 2003 04:23:37 -0000 Received: from f93.law15.hotmail.com (HELO hotmail.com) (64.4.23.93) by daedalus.apache.org with SMTP; 27 Feb 2003 04:23:37 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 26 Feb 2003 20:23:47 -0800 Received: from 12.252.55.153 by lw15fd.law15.hotmail.msn.com with HTTP; Thu, 27 Feb 2003 04:23:46 GMT X-Originating-IP: [12.252.55.153] From: "David Graham" To: struts-dev@jakarta.apache.org Bcc: Subject: Re: Bug #17156 Validate Integer? Date: Wed, 26 Feb 2003 21:23:46 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Feb 2003 04:23:47.0166 (UTC) FILETIME=[0570DFE0:01C2DE18] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Nice catch Ted! It did validate properly once the convertNull parameter was set to true. I've documented it in one place so far but am unsure of where else to put this note. David >From: Ted Husted >Reply-To: "Struts Developers List" >To: Struts Developers List >Subject: Re: Bug #17156 Validate Integer? >Date: Wed, 26 Feb 2003 00:45:58 -0500 > >Between 1.0 and 1.1 there's a switch that determines whether numerics like >Integer go to 0 or to null. If you have the test setup, try it again with >convertNull set to true as an ActionServlet parameter. > >If it then works, we can just document the condition. Since numerics are >not recommended for ActionForms, we don't need to solution to be >particularly elegant =:0) > >-Ted. > > >David Graham wrote: >>That bug states that validate required does not work with an ActionForm >>property with type java.lang.Integer. Indeed, I tested this with the >>struts-validator webapp's type form and required doesn't seem to run for >>that field when I changed it from String to Integer. What does happen is >>that a "0" shows up in the text box while the other fields remain blank >>and their required error messages are displayed. >> >>Is this simply a usage limitation of the validator? One more reason to >>use Strings for all ActionForm properties? I'm guessing that 0 shows up >>because that's the default value for an Integer object when it's created. >>I don't know enough about this to close the bug as INVALID or fix it. >> >>Thoughts? >> >>Thanks, >>Dave >> >> >> >> >> >>_________________________________________________________________ >>Help STOP SPAM with the new MSN 8 and get 2 months FREE* >>http://join.msn.com/?page=features/junkmail >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: struts-dev-help@jakarta.apache.org >> >> > > >-- >Ted Husted, >Struts in Action > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-dev-help@jakarta.apache.org _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --------------------------------------------------------------------- To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-dev-help@jakarta.apache.org