Re: Type conversion with enum elements

2008-04-15 Thread Ralf Fischer
Hi On Tue, Apr 15, 2008 at 12:29 PM, Ramanathan RV <[EMAIL PROTECTED]> wrote: > Hello, > > I wish to display/read value that belongs to an enumerated type. Struts > seems to handle Class and Enum differently. For instance, > > *xwork-conversion* > > com.company.utils.Constants.EducationalQual

Re: Type conversion with enum elements

2008-04-15 Thread Giovanni Azua
hi, A simple workaround would be defining the bean property as String type rather than as the actual enum. Then use the two enum type built in operations "name()" and "valueOf()" to implement the getter and setter respectively. If there is actually an elegant way to do it, I would also be i