hi, and thanks for your help

With all those scriptlets, mixing of taglib and RT expression values, 
and the relevant Java code not included, it's a little difficult to see 
exactly what you're attempting.

i'm just trying to get the duration from the FormBean, compare it with the
other possible values from the Enum type and show only certain values as
options of the combo

I'm assuming MyFormBean.duration's type is a custom enumeration with 
with a getLabel() method, and that you want to use the label associated 
with each enum value as both the label and value of the select options? 
but you're using the enum value directly in the html:select?

It looks like it would be a lot cleaner and easier to handle the 
conversion to and from enum values in your action, and let the form bean 
and JSP deal with a simple list of Strings.

how?
-- 
View this message in context: 
http://www.nabble.com/populate-combo-after-comparing-bean-values-with-enum-tp17882097p17937275.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to