can u plz let me know the declaration of the property status

On 12/12/06, Deepa Umakanth <[EMAIL PROTECTED]> wrote:

Hi,
Its just a setProperty where is I pass a value

PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE);

Where Stauts.Active value is

public 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 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 is :
>
> Caused by: org.apache.commons.beanutils.ConversionException: Cannot
> assign value of type enum object to property 'status' of type
> 'java.lang.String'
>
> Please advice
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738



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




--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738

Reply via email to