On Tue, 2004-11-23 at 07:06, Mike Zatko wrote:
> I am trying to parse a document which has a Timestamp element which may 
> or may not be null. Does anyone know how to setup the addCallMethod to 
> handle this situation?
> 
> The one i've tried is as follows:
> 
> digester.addCallMethod(root + orderClass + 
> "/payments/payment/expiration-date", "setExpirationDate", 0, new 
> String[] {"java.sql.Timestamp"});

In most cases, if you call a method and the parameter data is not
present in the input, then null is passed to the target method.

According to the javadoc for the ConvertUtils class in the BeanUtils
library,  String->java.sql.Timestamp is a supported conversion, so
things should just work.

Please provide more details, including describing what occurs when you
try the code you listed above. Also try enabling debug logging for the
Digester library, and see if that helps (see
http://wiki.apache.org/jakarta-commons/Digester/FAQ for info on enabling
debug logging.

Regards,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to