Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 3951 invoked from network); 16 Jul 2009 08:12:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jul 2009 08:12:35 -0000 Received: (qmail 23091 invoked by uid 500); 16 Jul 2009 08:13:40 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 23028 invoked by uid 500); 16 Jul 2009 08:13:40 -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 23018 invoked by uid 99); 16 Jul 2009 08:13:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 08:13:40 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 08:13:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MRM5V-0000TU-AC for dev@struts.apache.org; Thu, 16 Jul 2009 01:13:09 -0700 Message-ID: <24512223.post@talk.nabble.com> Date: Thu, 16 Jul 2009 01:13:09 -0700 (PDT) From: BankArsenal To: dev@struts.apache.org Subject: Getting message from a MessageResource in form of MAP MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: s4510488@hotmail.com X-Virus-Checked: Checked by ClamAV on apache.org I would like to know if there is a way of getting messages groupped by preceding word of each entry in form of Map object. Since MessageResource file is wildly written to have format for each entry like this.. FA.DH010 = not relevant FA.DH020 = not relevant FX.DH010 = File: FX.DH020 = File type FX.DH060 = Audit file FB.DH010 = not relevant FB.DH020 = not relevant What I would like to do is getting only entry having "FX" preceded. Below is fictitious code that I hope there is some API out there to help me out. MessageResources messageResources = MessageResources.getMessageResources("MessageResource"); Map fxEntryMap = getPartlyEntry(messageResources , "FX"); <-- my fictitious method. fxEtryMap.getMessage("DH020"); <-- return "File type" Thank in advance -- View this message in context: http://www.nabble.com/Getting-message-from-a-MessageResource-in-form-of-MAP-tp24512223p24512223.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org