argument type mismatch error
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   danny_rebello
Posted On:   Wednesday, August 11, 2004 07:16 AM

hi all, I am using import org.apache.commons.beanutils.BeanUtilsBean class for copying of form bean properties into my form value object properties In my form bean i have a property in the struts-config.xml file and in my FlightDTO class i have the following properties private Date flightdeparture = null ; private Date flightarrival = null ; public Date getFlightdeparture(){ return (this.flightdeparture); } public void setFlightdeparture(Date flightdeparture){ System.out.println(" setFlightdeparture FlightDTO** " + flightdepar   More>>

hi all,

I am using import org.apache.commons.beanutils.BeanUtilsBean

class for copying of form bean properties into my

form value object properties

In my form bean i have a property in the struts-config.xml file











and in my FlightDTO class i have the following properties

private Date flightdeparture = null ;

private Date flightarrival = null ;




public Date getFlightdeparture(){

return (this.flightdeparture);

}

public void setFlightdeparture(Date flightdeparture){

System.out.println(" setFlightdeparture FlightDTO** " + flightdeparture);

this.flightdeparture = flightdeparture;

}




public Date getFlightarrival(){

return (this.flightarrival);

}

public void setFlightarrival(Date flightarrival){

System.out.println(" setFlightArrival FlightDTO** " + flightarrival);

this.flightarrival = flightarrival;

}




When i do the following :

BeanUtilsBean beanutil = new BeanUtilsBean();

beanutil.copyProperties(FlightDTO,FlightForm);


I get the error as :

argument type mismatch

How can i rectify this error

Thanks for any suggesttions

Danny

   <<Less
About | Sitemap | Contact