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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
