> From a pure JavaBean perspective, a class like: > > package com.dotech; > > import java.io.Serializable; > import java.util.Date; > > public class ConfusedBean implements Serializable { > public void setDate(String s) {} > public Date getDate() { return null; } > } > > is seen by Introspector as (Sun JDK 1.4.2_05-b04): > > Dumping Properties for: com.dotech.ConfusedBean > > class > propertyType: class java.lang.Class > readMethod: public final native java.lang.Class > java.lang.Object.getClass() > writeMethod: null > date > propertyType: class java.util.Date > readMethod: public java.util.Date > com.dotech.ConfusedBean.getDate() > writeMethod: null
??? Makes no sense to me. "String" is a class but "Date" is a Date? It transates a setter into a getter?? What? > In other words, it has two properties: "class" and "date". > The "date" property is read-only and is accessed through the > "getDate" method. How are you trying to set the > "expirationDate" property on your bean? Originally its set by a constructor, which takes a data object as an argment. That data object is filled by reading the database. expirationDate is filled later by using the setDate(String....) setter. -- Tim Slattery [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]