Hello there! I'm using enum types in my app and I'd like to use combine them with struts tags.
My enum class hierarchy descends to PersistenEnum (the example on hibernate)
a method called getEnumCode() returns a Serializable that represents the code for that enum :P


So far what I'm doing is:

<%String code = String.valueOf(YesNoEnum.YES.getEnumCode())%>
<html:checkbox value="<%=code%>">

This of course s**** cuz I have to import the enum and also adds scriptlets to my jsp. So I tried the struts-el using:
value="{YesNoEnum.YES.enumCode}"
not working either.


Anyone has a good experience with that?

Thanks

Vinicius

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



Reply via email to