Re: conversionexception

2006-12-12 Thread Kranti Parisa
prefer taking that enum value as string and use the same On 12/13/06, Laurie Harper <[EMAIL PROTECTED]> wrote: You'd need to either register a converter with BeanUtils that knows how to convert the enum type to String, or just do this: PropertyUtils.setProperty(context.getForm(), "status",

Re: conversionexception

2006-12-12 Thread Laurie Harper
You'd need to either register a converter with BeanUtils that knows how to convert the enum type to String, or just do this: PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE.toString()); L. Deepa Umakanth wrote: Error: Caused by: org.apache.commons.beanutils.Conversi

RE: conversionexception

2006-12-12 Thread Deepa Umakanth
Hi kranti, I have just imported the Status class and use it directly in the setProperty() as Status.ACTIVE -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 9:31 AM To: Struts Users Mailing List Subject: Re: conversionexception can u plz

Re: conversionexception

2006-12-12 Thread Kranti Parisa
blic enum Status { ACTIVE, INACTIVE, TESTING, PUBLISHED } -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 9:21 AM To: Struts Users Mailing List Subject: Re: conversionexception Dear Deepa, you should use that enum object as a collect

RE: conversionexception

2006-12-12 Thread Deepa Umakanth
PROTECTED] Sent: Tuesday, December 12, 2006 9:21 AM To: Struts Users Mailing List Subject: Re: conversionexception Dear Deepa, you should use that enum object as a collection. if you want to display all the contents of the enum use logic:iterate and in type attribute mention the object type O

Re: conversionexception

2006-12-12 Thread Kranti Parisa
Dear Deepa, you should use that enum object as a collection. if you want to display all the contents of the enum use logic:iterate and in type attribute mention the object type On 12/12/06, Deepa Umakanth <[EMAIL PROTECTED]> wrote: I am facing an error with PropertyUtils.getProperty(), Which

RE: conversionexception

2006-12-12 Thread Deepa Umakanth
Error: Caused by: org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'com.kryterion.wa.util.enums.Status' to property 'status' of type 'java.lang.String' PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE); -Original Message- From: Deepa Umaka