Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 7620 invoked from network); 3 Dec 2009 09:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 09:55:33 -0000 Received: (qmail 73080 invoked by uid 500); 3 Dec 2009 09:55:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 72849 invoked by uid 500); 3 Dec 2009 09:55:26 -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 72839 invoked by uid 99); 3 Dec 2009 09:55:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 09:55:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.142.200.106] (HELO web30403.mail.mud.yahoo.com) (68.142.200.106) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Dec 2009 09:55:15 +0000 Received: (qmail 91811 invoked by uid 60001); 3 Dec 2009 09:54:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259834093; bh=xhYLTBdA8vnzX9GjWCdbiekqI11qE+XvBKRx1go9akI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=H9oq8gTjM/7Ue/Olwgy8Y1nDt+pUBPfVBy9EPgHjtTrOmPt157lur+KJeLe+Sa/gFQTgpT3bANrBaRQ7Zf2V8CBcKwhKI9pcO3zt1QylYb1ItJiJ5gpJSFSrTPZqel4ARDEPJn8Pz3Yw2pnwCbRQUTnyaqsRLBsHEcY7cnopCVI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=abwA3QvOq+cOpJ4ck/eAdUFJcZM8dds4Wtjjn1EjjeyY1m9jjgwvjd/xkjsHm+Ewot0Nnlx0qIJmyXoOAqzSQ+k9oBuFDyblTSSqj5q0cgxpIL9GV+QYyLeMGOz8uU/vrD8GIyNscNSCFcEkv7pQvUkOEo7+47YA1jwJqYmJLjY=; Message-ID: <979116.89720.qm@web30403.mail.mud.yahoo.com> X-YMail-OSG: UD4bV_gVM1nrV2g_UAqBTzWJ7xc8m6yUsV3WdUhGtakTxncc34IVk1jycp65XIqraF2c3p1DnL95HUXhaJdd81pXi7syNZi_wY98n77rzA.A1ZcIfVptZazxoqGVO9WkkqrjIq4nEE040BMBzGrUp.JLJN4x4hDJVDjPzFn9Yaurt5UNn3WdsyM3oJCaNfxSmEgAzTC2bjEOsQymEHYMGv9F86OEmEd6txexBYn2fx8iJHtXwvwsOCV1CjD5uGIp_qXkniChJUR6ycwNygJGzp96oUqO3j54Vumc.w9qUPBXFR3wzsSbYFH_uo7bzqxFP_gOcSeuoKPjdOiKeKySHeknaxConTG6wUxgeUoC8YUPoF8V3NHY6bhOxdV29LGeLc0M8ryZ_nEj1XA2QMpZdaf98lLFIPgDbLng_3jNEWTLacafMeGKh0gS3eirxCEvyQx18hHdTum.G25.W7B9BMfedJc5n4wDubIfKMQ78bXGiU9gw3EpQmwLmU3tJ2M.bxiap6Q9vWVhqB103m6Ab_8YDyb0EWGzWLhCkpxFIofFX5vMQmREEPwteO7iZjotEd83eP8kyf713OOc6io3k9p2MrSerp4r9GWVXXYCcCWhlEfakBYJjbHfs.pLUYp.bcHlT3JW1nOGBi2T1qw2Ia.RaevwnRTIFDfFbVWuLkaqCPXD5FWXrTNoRZQ8 Received: from [93.97.40.32] by web30403.mail.mud.yahoo.com via HTTP; Thu, 03 Dec 2009 01:54:53 PST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 References: <45382.57412.qm@web30402.mail.mud.yahoo.com> <26613875.post@talk.nabble.com> <579bc170912021813o2a33def8xc2d2a9d4d445741@mail.gmail.com> Date: Thu, 3 Dec 2009 01:54:53 -0800 (PST) From: mailtolouis2020-struts@yahoo.com Subject: Re: How to get the key name To: Struts Users Mailing List In-Reply-To: <579bc170912021813o2a33def8xc2d2a9d4d445741@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1993675306-1259834093=:89720" X-Virus-Checked: Checked by ClamAV on apache.org --0-1993675306-1259834093=:89720 Content-Type: text/plain; charset=us-ascii Hi, Sorry, I think you misunderstanding my question. My main question is fieldName give me the name attribute value, but I want to get my key attribute value, is there anything like fieldKey or something ? fieldName = user.name ?? = label.name Thanks LV ________________________________ From: Saeed Iqbal To: Struts Users Mailing List Sent: Thu, December 3, 2009 2:13:20 AM Subject: Re: How to get the key name You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed wrote: > > Try this, > > > > > -siddiq. > > > Louis Voo wrote: >> >> Hi, >> >> I've this text field in my jsp >> >> > required="true"/> >> >> and this property in the resource bundle >> >> error.required = ${getText(fieldName)} is required. >> label.name = Name >> >> >> When there is validation error, it looking for user.name property, it is >> fine because I'm using fieldName, so my question is there anyway I can get >> key name? So that I can use the label.name property. >> >> >> Regards >> LV >> > > -- > View this message in context: http://old.nabble.com/How-to-get-the-key-name-tp26613714p26613875.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --0-1993675306-1259834093=:89720--