On Thu, 2005-05-05 at 12:48 -0400, shailesh.ligade wrote:
> I have a simple xml
>
> <tr>
> <td colnum="c0">7</td>
> <td colnum="c1">8</td>
> </tr>
>
> I have class called Row and and another Rows
>
> Row class has two mthods (one for column and one for data)
> and Rows class has addRow(Row row) method
>
> code is
>
> digester.addSetProperties("tr/td", "colnum", "column");
> digester.addCallMethod("tr/td", "setData", 0);
>
> and
>
> digester.addSetNext("tr/td", "addRow");
>
> What i get in system.out inside addRow is c0 - null so so my data is always
> null. Actaully setData() method is getting called, but it is called after
> addRow() method.
>
> How to fix this?
there are probably a couple of difficulties here.
the first is that i don't see an object creation rule. you may need to
add a rule to create the row. (see documentation for more details on the
choices.)
the second is that you're going to need to think about the ordering of
your rules. again, take a look at the documentation for more details.
if this doesn't help then i'd suggest posting a longer code snippet: one
that people can run. it's generally easier to diagnose things that way.
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]