Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 89638 invoked from network); 6 Jan 2007 00:28:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2007 00:28:09 -0000 Received: (qmail 24537 invoked by uid 500); 6 Jan 2007 00:28:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 24491 invoked by uid 500); 6 Jan 2007 00:28:04 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 24437 invoked by uid 99); 6 Jan 2007 00:28:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 16:28:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MANY_EXCLAMATIONS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.240.77.82] (HELO sccrmhc12.comcast.net) (63.240.77.82) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 16:27:49 -0800 Received: from [192.168.1.47] (c-69-143-26-154.hsd1.va.comcast.net[69.143.26.154]) by comcast.net (sccrmhc12) with ESMTP id <20070106002727012004j5see>; Sat, 6 Jan 2007 00:27:28 +0000 Message-ID: <459EECE8.7080106@christopherschultz.net> Date: Fri, 05 Jan 2007 19:27:20 -0500 From: Christopher Schultz User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Struts validation (still) (again!) (ARRGH!) References: <459EDF71.2000509@Berghold.Net> In-Reply-To: <459EDF71.2000509@Berghold.Net> X-Enigmail-Version: 0.94.1.2.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter, Peter L. Berghold wrote: > Hmm... I don't usually put stuff like this in "packages" but you might want to use slashes instead of dots. Give it a try and see... > When the form is submitted completely blank (which should generate an > error.. and it does) I get a popup with NOTHING IN IT but an yellow > exclamation mark. Try adding the 'null="false"' attribute to your element: that should then give you error messages in the form ???label.body_rq??? so at least you can verify that the correct message key is being used (you get "???" + the key + "???", along with some locale information if that's being used). > The conclusion I'm drawing is that the validation framework is for some > unknown reason not finding the resource file. Was there something the > the validation.xml file that was supposed to point to this file or > should it have picked it up on its own? Your validation config should use the existing application resource files correctly. I'm assuming you aren't using an ancient version of anything, are you? Also, you only have one resource bundle, right? If you have more than one, I think you have to name them using the "key" attribute of the element. For instance, I have 6 bundles, one of which is called ApplicationResources.properties and has no "key". This contains generic stuff. At some point, the single bundle was getting out of control, so I split it up and have 6, now. Anyhow, when I did that, I had to add a "bundle" attribute to all of the validator fields that used message bundle keys (and whose messages were not in the generic bundle). Just a note for future use. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnuzo9CaO5/Lv0PARAoc3AKCq5yJ1X98ICXJKwsWoDPV9a+l1IwCeN/mv Ek5ZlzfFVzw5fRXPcPKnTS4= =o36v -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org