struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <>
Subject Re: Enum type conversion
Date Thu, 18 Sep 2008 09:51:09 GMT
Piotr Matkowski wrote:
> Maybe Enums should be handled by struts by default? Why they aren't handled?

Enum conversion broken/unsupported in OGNL's default type converter.  I 
can't recall where.  I spent hours hunting it down and put it in the too 
hard basket...
However, if you enable XWork's default Enum convert it works just fine 
without further configuration

ie. com.opensymphony.xwork2.util.EnumTypeConverter

You can enable that converter in the default converters file, or enable 
it for individual properties.

I'm not sure why it's not enabled by default.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message