commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject Re: digester question
Date Thu, 05 May 2005 23:01:44 GMT
On Thu, 2005-05-05 at 11:50 -0400, shailesh.ligade wrote:
> I have a an 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?

See the FAQ entry titled:
  "How do I get CallMethodRule to fire before SetNextRule?"
at
  http://wiki.apache.org/jakarta-commons/Digester/FAQ

I think this is the information you are looking for..

Regards,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message