Check that the Database class has a valid bean setter method for the "name" property, i.e. "public void setName(String name)".
- Tatu V. > -----Original Message----- > From: Pretterhofer, Guenter (ext.) > [mailto:[EMAIL PROTECTED] > Sent: 17. maaliskuuta 2004 17:08 > To: [EMAIL PROTECTED] > Subject: [Digester] addSetProperties > > > hi all, > > maybe somebody can help me with the following problem? > > xml-file: > <property> > <database name="db1"> > <user>user1</user> > </database> > <database name="db2"> > <user>user2</user> > </database> > </property> > > a small excerpt of the Java source: > digester.addObjectCreate("property", Property.class); > digester.addObjectCreate("property/database", Database.class); > digester.addSetNext("property/database", "addDatabase"); > digester.addSetProperties("/property/database", "name", "name"); > digester.addBeanPropertySetter("property/database/user", "user"); > > > when i print out name and user the output is the following: > user=user1 > name=null > user=user2 > name=null > > I don't understand why name is always null ... > what am I doing wrong? > > thanks for your help > g�nter > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
