I want to use a bean to supply options to a select widget. I have a business object, DevicesBO that has a method that returns a Collection.
Class Name: DevicesBO Method: Collection getDevices() The collection is a List of CodeDecodeDTO objects. Class Name: CodeDecodeDTO Methods: String getCode() String getDecodeDesc() The value should be retrieved using the getCode() method and the label should be retrieved using getDecodeDesc. I've tried with no success to setup my JSP, below is what I've tried. snippet from my struts-config.xml ... ... <form-beans> <form-bean name="myAppFm" type="org.apache.struts.validator.DynaValidatorForm"> ... ... <form-property name="devices" type="sample.DeviceBO" /> </form-bean> ... ... snippet from my JSP ... ... <html:select name="myAppFm" property="dvcTyp" > <html:options collection="devices" name="myAppFm" property="devices.code" labelProperty="devices.decodeDesc" /> </html:select> ... ... What is the correct way to setup the html:options tag? Is there a way to use OSCache tags so I can cache the DevicesBO in my application? Thanks, James --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]