Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 47907 invoked from network); 7 Sep 2006 16:55:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2006 16:55:27 -0000 Received: (qmail 85449 invoked by uid 500); 7 Sep 2006 16:55:22 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 85401 invoked by uid 500); 7 Sep 2006 16:55:22 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 85390 invoked by uid 99); 7 Sep 2006 16:55:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 09:55:21 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hseoane@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 09:55:21 -0700 Received: by nf-out-0910.google.com with SMTP id n15so527724nfc for ; Thu, 07 Sep 2006 09:54:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=mQN+jhcpUtxe8unOYCDBM1jNTwDgvU8H/Z4yfm7dcM8PHOQ59P7c7KohrNg3TOmNk87zVWSnlXmk3qs+EEWJgKhNLoMBwjQqFV/2vQfj31Nr9gIhAMD3ei5ZPeSDOno74kZICBkfNrPxavo/J2jNfA05lC0ny/RTTE2IYZnpgzE= Received: by 10.49.92.18 with SMTP id u18mr2866735nfl; Thu, 07 Sep 2006 09:54:59 -0700 (PDT) Received: by 10.49.78.5 with HTTP; Thu, 7 Sep 2006 09:54:59 -0700 (PDT) Message-ID: Date: Thu, 7 Sep 2006 13:54:59 -0300 From: "=?ISO-8859-1?Q?Hern=E1n_Seoane?=" Sender: hseoane@gmail.com To: "Jakarta Commons Users List" Subject: Re: Call a method in an external class In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_284708_20878656.1157648099501" References: X-Google-Sender-Auth: d5d369dce109cee2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_284708_20878656.1157648099501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've seen that what I request could be done with the factory-create-rule. However, I can't seem to make the ObjectCreationFactory have access to the content of the tag ("CATEG_1" in my example) Any help will be appreciated! Thanks, Hern=E1n On 9/7/06, Hern=E1n Seoane wrote: > > Hello, I'm using Commons Digester to parse a XML similar to this: > > > Name of the element > CATEG_1 > > > Where 'categcode' is a code for the element's category. This category is > actually a Category object, and I need to fetch it with the use of a > service. > What I need is a way to call a method in that service directly from the > Digester rules XML (e.g. CategoryService.getCategory(String categ) ) that > sets this category in the Element as an object. Have in mind that I'm try= ing > to do is to avoid calling this service from the Element object itself, > because it is a business model object. > > > Thanks in advance, > Hern=E1n P. L. Seoane > ------=_Part_284708_20878656.1157648099501--