Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 51619 invoked from network); 4 Nov 2003 16:58:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Nov 2003 16:58:26 -0000 Received: (qmail 65139 invoked by uid 500); 4 Nov 2003 16:58:15 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 65125 invoked by uid 500); 4 Nov 2003 16:58:15 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 65110 invoked from network); 4 Nov 2003 16:58:14 -0000 Received: from unknown (HELO mail.htp-tel.de) (193.254.18.42) by daedalus.apache.org with SMTP; 4 Nov 2003 16:58:14 -0000 Received: from htp-tel.de (a81-14-159-54.net-htp.de [81.14.159.54]) (authenticated) by mail.htp-tel.de (8.10.2/8.10.2) with ESMTP id hA4GwEW01351 for ; Tue, 4 Nov 2003 17:58:14 +0100 (MET) Message-ID: <3FA7DAC3.60300@htp-tel.de> Date: Tue, 04 Nov 2003 17:58:43 +0100 From: Frank Schaare User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.5) Gecko/20031007 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: [Digester]How to access created objects References: <1067963879.36934.ezmlm@jakarta.apache.org> In-Reply-To: <1067963879.36934.ezmlm@jakarta.apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, i try to get familiar with the digester. Therefore i read all three (not very much) articles mentioned on digester�s homesite and tried some code like this: public void initSQLRules() { try { Digester digester = new Digester(); digester.push(this); digester.addObjectCreate("Abfragen",Abfragen.class); digester.addObjectCreate("Abfragen/Abfrage",Abfrage.class); digester.addBeanPropertySetter("Abfragen/Abfrage/Name","name"); digester.addBeanPropertySetter("Abfragen/Abfrage/SQL","wert"); digester.addSetNext("Abfragen/Abfrage","addAbfrage"); digester.parse("my.xml"); } catch (Exception e) { e.printStackTrace(); } } This seems to work, what exactly happen here ? Obviously, the digester gets some rules an delegates xml parsing to a SAXParser. How do i access (get) the generatet Bean ? Where is the bean object createt ? Who has information about this mysterios stack ? The Code 'digester.push(this);' seems to put the servlet instance on a stack. What for ? Are there any sites that gain a little more information as jakarta does ? thx for your answers. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org