From dev-return-69679-apmail-struts-dev-archive=struts.apache.org@struts.apache.org Fri Feb 23 14:18:03 2018 Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED64B17682 for ; Fri, 23 Feb 2018 14:18:03 +0000 (UTC) Received: (qmail 20267 invoked by uid 500); 23 Feb 2018 14:18:03 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 20244 invoked by uid 500); 23 Feb 2018 14:18:03 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 20228 invoked by uid 99); 23 Feb 2018 14:18:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2018 14:18:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 78E81C00B8 for ; Fri, 23 Feb 2018 14:18:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.129 X-Spam-Level: ** X-Spam-Status: No, score=2.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HBAyDHLsJztM for ; Fri, 23 Feb 2018 14:18:01 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9A3F95F24A for ; Fri, 23 Feb 2018 14:18:00 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id k87so4960992wmi.0 for ; Fri, 23 Feb 2018 06:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0fKC4Qn6UoB+E2aVnj0tjDBr+y3OAXZc6vH8s5yQAjM=; b=fR4swteVbO2nH8RQJLGTRec8tez/r27T54I7djb/nnNBah+adeOIqAk1nZ5cEyTk6j h9zoeVaCyEKA+5k3q8lI6l1L0l0Jih0WHT5yXqsFEmHxOibbfhYEE9oaOE8tP1HJicJD PAyGcv9rSe++xGCqNjnkjF2JzNui/hFxLBUExkRHO2cjveQ6MR/SKxNX7AzR0NhnDXsI ESEbGOgs1jj0DuyP6ZW0zAooVZYMgRSPNA6HbYTPeC6kMXqsLc0Qyyd4pfRh0Nc7wSOV 5yooMmwuGqAjGdJOoLoE5WyqcK7Vrnb2T7JfHSJAQawwTIlQpSIYenMcRyrEbqrW8Kig KNiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0fKC4Qn6UoB+E2aVnj0tjDBr+y3OAXZc6vH8s5yQAjM=; b=YISIEmoKflW2LSS2Esq1TN/2Gz85DdLkOaBPMik0YIMfB9o2ssvZasHmB1vPFFTF3s 8NMj/2EYw4MKZ1+l40W1ePU8V9Fn8zMTk1VTnMfWHdOCTcn/4b6I/jojWg5g1DRsTJ10 04jJPAJiMSB93itPB/AzqZPcb1J8AsNbTIJ2siQhtfPHgwCNzJBokaBFOgOZVAEMuAfA L7ws6mpNcpqX2G4xHnwWeOFjRsA13gW4URi+Lv6GVNEZy1kFqm7RGM2qDHJMQTlGW84a XHL8Gb4tzUJS0k/yyXi7R5KG4kTJYbmUfT2AbqMhj+pwYNS3AjYj0TgAfGOZXM2/iG0+ u9kg== X-Gm-Message-State: APf1xPCX/KT9p8VqnJxoY00vYTKiab++V4mkv0rRdF4f7ngX1AoKAQks 1/S0pjKb0PYfSc6NKHvIgkoDmL7FVv/QdY80ESh4Kg== X-Google-Smtp-Source: AH8x224Oha4zE0RfzsYGROSRGg0BLIWjXFiCtw77y4sxe/sRJ4MZrkZlw4POQkZU4s3BN/NKPeyExeD5ke8XeN9nv2k= X-Received: by 10.28.48.85 with SMTP id w82mr1831080wmw.95.1519395479363; Fri, 23 Feb 2018 06:17:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.144.226 with HTTP; Fri, 23 Feb 2018 06:17:58 -0800 (PST) In-Reply-To: References: From: Greg Huber Date: Fri, 23 Feb 2018 14:17:58 +0000 Message-ID: Subject: Re: Changes on the validator field-validator required To: Struts Developers List Content-Type: multipart/alternative; boundary="001a11424ac4d226920565e1d301" --001a11424ac4d226920565e1d301 Content-Type: text/plain; charset="UTF-8" I checked, and double value comes from ongl, and yes it wont be a null, so does not get validated. I get the struts error though. I have had to change all my form beans to be Doubles. https://struts.apache.org/core-developers/required-validator.html could do with an update warning no not to use primitives. Cheers Greg Cheers Greg On 23 February 2018 at 12:51, Yasser Zamani wrote: > > > On 2/23/2018 2:40 PM, Greg Huber wrote: > > We use validator to make sure null is > > not passed, but if I use a double it does not now validate, it wants a > > Double for it to work. > > > > Has there been any changes, or has it always been like this? > > Did you mean it works in some versions as you expect? > > I think the primitive type double, cannot be null at all in java and > automatically will be initialized to 0 by java i.e. you don't need a > null validator in such situations. The non-primitive type Double, can. > This may explain why when you change your type to Double it starts working. > > Regards. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > --001a11424ac4d226920565e1d301--