commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zmitko, Jan" <Jan.Zmi...@Dresdner-Bank.com>
Subject Digester and using of java.util.Date
Date Thu, 02 Nov 2006 06:43:42 GMT
Hi,

I´ve a question why it´s not possible to use "java.util.Date" in 
digester respectively in the digester rule file. Instead the type
"java.sql.Date" works.

Can someone explain me that´s the reason?


//xml file with data contains the following element
<wertstellung>2004-03-31</wertstellung>

//xml file with rules contains the following definition
<call-method-rule pattern=3D"wertstellung" =
methodname=3D"setWertstellung" paramcount=3D"0"  =
paramtypes=3D"java.sql.Date"/>

//the corresponding code of the object is the following=09
private Date	werstellung 			=3D null;

public void setWertstellung(Date newWertstellung){
	this.werstellung =3D newWertstellung;
}

public Date getWerstellung() {
	return this.werstellung;
}

Thanks a lot, Jan

---------------------------------------------------------------------
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