IMO, it is not wise to have your DAO return a list of LabelValueBean objects.

I would be more likely to use a Map or a simple bean to do that
instead of marrying your DAO layer to Struts.

Struts' <html:optionsCollection> tag can introspect the label and value from the bean properties of your choice. This works for *all* beans, not just LabelValueBeans. If your own beans happen to have properties called "label" and "value", <html:optionsCollection> will work out of the box.


-- Bill
--
Bill Schneider
Chief Architect

Vecna Technologies
5004 Lehigh Rd., Suite B
College Park, MD 20740
[EMAIL PROTECTED]
t: 301-864-7253 x1140
f: 301-699-3180


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



Reply via email to